I am trying to write an OOP for my project and i am get stuck on this. Can anyone give me some advise?
PHP Code:
<?php
require_once ('class.UserAddress.php');
class User{
public $id;
public $name;
public $username;
public $password;
private $arrayAddress; //An array of UserAddress
//DO I NEED TO DO ANYTHING HERE?
ON THE USERADDRESS class ALREADY DEFINE EVERYTHING LIKE
public function __construct
public function get and set ID; )
public function get and set street1;$street1;
public function get and set city;$city;
public function get and set state;$state;
public function get and set zip; $zip;
}
?>