Beispiel #1
0
 public function testFromStringWithScalar()
 {
     $this->assertSame(ScalarType::getInstance(), MixedType::fromString("scalar"));
 }
Beispiel #2
0
 /**
  * CustomScalarType constructor.
  * @param array $config
  */
 function __construct(array $config)
 {
     $this->name = $config['name'];
     $this->config = $config;
     parent::__construct();
 }