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