Answer the question
In order to leave comments, you need to log in
Make Entity or Value-object?
Good afternoon. There is a standard Entity describing the Organization
class Organization {
public function __construct(Name $name, Address $address, Phone $phone)
{
$this->name = $name
...
}
Assert:notEmpty($country);
Assert:notEmpty($city);
Assert:notEmpty($street)
"Россия", "Москва", "Солнечная ул", "15", "115033"
"Россия", "CityID", "Солнечная ул", "15", "115033"
? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question