public function __construct()
 {
     $this->id = Id::create();
     $this->counter = 0;
 }
Exemplo n.º 2
0
 private function keyExists(Id $id)
 {
     if (!isset($this->data[$id->getId()])) {
         throw new \OutOfBoundsException($id->getId() . ' doesn\'t exists.');
     }
 }
Exemplo n.º 3
0
 public function test_it_can_create_an_id()
 {
     $Id = Id::create();
     $this->assertInstanceOf('Milhojas\\Library\\ValueObjects\\Identity\\Id', $Id);
 }