Exemplo n.º 1
0
 public static function createNew($date, $name, $from, $to, $code, $amount, $description)
 {
     return new static(Id::generate(), Date::fromString($date), Account::withName($name, $to), Account::fromNumber($from), Code::fromString($code), Amount::fromString($amount), Description::fromString($description));
 }
Exemplo n.º 2
0
 public static function fromNumber($from)
 {
     return new static(Id::generate(), null, $from);
 }
Exemplo n.º 3
0
 public static function createNew($title, $type)
 {
     return new static(Id::generate(), $title, $type);
 }