/** * Returns the prototype of the items type * * A collection has always one property with name item representing the type of all items in the collection. * * @return Prototype */ public static function itemPrototype() { return DateTime::prototype(); }
/** * @test */ public function it_constructs_a_prototype() { $dateTimePrototype = DateTime::prototype(); $this->assertEquals('Prooph\\Done\\Process\\Type\\DateTime', $dateTimePrototype->of()); $description = $dateTimePrototype->typeDescription(); $this->assertEquals('DateTime', $description->label()); $this->assertEquals('datetime', $description->nativeType()); $this->assertFalse($description->hasIdentifier()); }