예제 #1
0
파일: Party.php 프로젝트: bakgat/notos
 /**
  * @return Name
  */
 public function lastName()
 {
     return Name::fromNative($this->lastName);
 }
예제 #2
0
파일: Structure.php 프로젝트: bakgat/notos
 /**
  * @return Name
  */
 public function name()
 {
     return Name::fromNative($this->name);
 }
예제 #3
0
파일: NameTest.php 프로젝트: bakgat/notos
 /**
  * @test
  * @group name
  */
 public function should_create_from_native()
 {
     $name = Name::fromNative('Karl Van Iseghem');
     $this->assertInstanceOf('Bakgat\\Notos\\Domain\\Model\\Identity\\Name', $name);
 }