for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Domain\Repository\Tests\Fixtures;
use Cubiche\Domain\Geolocation\Coordinate;
use Cubiche\Domain\Model\Entity;
* Address.
* @author Ivannis Suárez Jerez <[email protected]>
class Address extends Entity
{
* @var string
protected $name;
protected $street;
protected $zipcode;
protected $city;
* @var Coordinate
protected $coordinate;
* Address constructor.
* @param AddressId $id
* @param string $name
* @param string $street
* @param string $zipcode
* @param string $city
* @param Coordinate $coordinate
public function __construct(AddressId $id, $name, $street, $zipcode, $city, Coordinate $coordinate)
parent::__construct($id);
$this->name = $name;
$this->street = $street;
$this->zipcode = $zipcode;
$this->city = $city;
$this->coordinate = $coordinate;
}
* @return string
public function name()
return $this->name;
public function street()
return $this->street;
public function zipcode()
return $this->zipcode;
public function city()
return $this->city;
* @return Coordinate
public function coordinate()
return $this->coordinate;