コード例 #1
0
ファイル: MixedTypeTest.php プロジェクト: jakubkulhan/meta
 public function testFromStringWithScalar()
 {
     $this->assertSame(ScalarType::getInstance(), MixedType::fromString("scalar"));
 }
コード例 #2
0
ファイル: CustomScalarType.php プロジェクト: aeshion/ZeroPHP
 /**
  * CustomScalarType constructor.
  * @param array $config
  */
 function __construct(array $config)
 {
     $this->name = $config['name'];
     $this->config = $config;
     parent::__construct();
 }