/** * @param string $valueString * @return Type */ public static function fromString($valueString) { return Unknown::fromNativeValue(json_decode($valueString, true)); }
/** * @test * @expectedException \Prooph\Done\Process\Type\Exception\InvalidTypeException * @dataProvider provideInvalidTypes */ public function it_can_not_be_initialized_with_invalid_types($value) { Unknown::fromNativeValue($value); }
/** * 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 Unknown::prototype(); }