| 1 | <?php  | 
            ||
| 24 | class Address extends Entity  | 
            ||
| 25 | { | 
            ||
| 26 | /**  | 
            ||
| 27 | * @var IdInterface  | 
            ||
| 28 | * @Cubiche\Id  | 
            ||
| 29 | */  | 
            ||
| 30 | protected $id;  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * @var StringLiteral  | 
            ||
| 34 | * @Cubiche\Field(type="StringLiteral")  | 
            ||
| 35 | */  | 
            ||
| 36 | protected $street;  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * @var StringLiteral  | 
            ||
| 40 | * @Cubiche\Field(type="StringLiteral", name="zip")  | 
            ||
| 41 | */  | 
            ||
| 42 | protected $zipcode;  | 
            ||
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * @var StringLiteral  | 
            ||
| 46 | * @Cubiche\Field(type="StringLiteral")  | 
            ||
| 47 | */  | 
            ||
| 48 | protected $city;  | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * Address constructor.  | 
            ||
| 52 | *  | 
            ||
| 53 | * @param AddressId $id  | 
            ||
| 54 | * @param string $street  | 
            ||
| 55 | * @param string $zipcode  | 
            ||
| 56 | * @param string $city  | 
            ||
| 57 | */  | 
            ||
| 58 | public function __construct(AddressId $id, $street, $zipcode, $city)  | 
            ||
| 66 | |||
| 67 | /**  | 
            ||
| 68 | * @return StringLiteral  | 
            ||
| 69 | */  | 
            ||
| 70 | public function street()  | 
            ||
| 74 | |||
| 75 | /**  | 
            ||
| 76 | * @return StringLiteral  | 
            ||
| 77 | */  | 
            ||
| 78 | public function zipcode()  | 
            ||
| 82 | |||
| 83 | /**  | 
            ||
| 84 | * @return StringLiteral  | 
            ||
| 85 | */  | 
            ||
| 86 | public function city()  | 
            ||
| 90 | |||
| 91 | /**  | 
            ||
| 92 | * @param Address $other  | 
            ||
| 93 | *  | 
            ||
| 94 | * @return bool  | 
            ||
| 95 | */  | 
            ||
| 96 | public function equals($other)  | 
            ||
| 103 | }  | 
            ||
| 104 |