예제 #1
0
 public function testCreateClassToString()
 {
     $this->assertEquals(10, IdFactory::create(new TestId(10))->get());
 }
예제 #2
0
 /**
  * @param mixed $id
  *
  * @return Id
  */
 protected static function fromId($id)
 {
     return IdFactory::create($id);
 }
 /**
  * @param int $id
  *
  * @return bool
  */
 public function isIdRejected($id)
 {
     return $this->rejected->existsInternal(IdFactory::create($id));
 }