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