start to add ability to merge tunes
started refactoring tune builders to use string type hint instead of StringAtom
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user