__construct() public method

public __construct ( array $config = [] )
$config array
コード例 #1
0
ファイル: NodeField.php プロジェクト: youshido/graphql
 public function __construct(FetcherInterface $fetcher)
 {
     $this->fetcher = $fetcher;
     $this->type = (new NodeInterfaceType())->setFetcher($this->fetcher);
     parent::__construct([]);
 }
コード例 #2
0
ファイル: GlobalIdField.php プロジェクト: youshido/graphql
 /**
  * @param string $typeName
  */
 public function __construct($typeName)
 {
     $this->typeName = $typeName;
     $config = ['type' => $this->getType(), 'name' => $this->getName(), 'resolve' => [$this, 'resolve']];
     parent::__construct($config);
 }