start to add ability to merge tunes

started refactoring tune builders to use string type hint instead of StringAtom
This commit is contained in:
2018-05-06 10:01:16 -04:00
parent 655a04a501
commit 82dc3de079
34 changed files with 505 additions and 87 deletions

View File

@@ -30,6 +30,20 @@ class Person implements EntityInterface
$this->setIdentity($identity);
}
/**
* @param string $name
* @param \XaiCorp\AbcParser\Domain\Atoms\EmailAtom $email
* @param \Webpatser\Uuid\Uuid|null $identity
* @return static
* @throws \Enzyme\Axiom\Exceptions\AtomException
*/
public static function create(string $name, EmailAtom $email, Uuid $identity = null)
{
$nameAtom = new StringAtom($name);
return new static($nameAtom, $email, $identity);
}
/**
* Checks whether this model has the given attribute set.
*