| @@ 25-38 (lines=14) @@ | ||
| 22 | ||
| 23 | protected $isFinal = false; |
|
| 24 | ||
| 25 | public function __construct(array $config = []) |
|
| 26 | { |
|
| 27 | if (empty($config['type'])) { |
|
| 28 | $config['type'] = $this->getType(); |
|
| 29 | $config['name'] = $this->getName(); |
|
| 30 | } |
|
| 31 | ||
| 32 | if (TypeService::isScalarType($config['type'])) { |
|
| 33 | $config['type'] = TypeFactory::getScalarType($config['type']); |
|
| 34 | } |
|
| 35 | ||
| 36 | $this->config = new InputFieldConfig($config, $this, $this->isFinal); |
|
| 37 | $this->build($this->config); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function build(InputFieldConfig $config) |
|
| 41 | { |
|
| @@ 27-40 (lines=14) @@ | ||
| 24 | ||
| 25 | protected $_resolve_cache = null; |
|
| 26 | ||
| 27 | public function __construct(array $config = []) |
|
| 28 | { |
|
| 29 | if (empty($config['type'])) { |
|
| 30 | $config['type'] = $this->getType(); |
|
| 31 | $config['name'] = $this->getName(); |
|
| 32 | } |
|
| 33 | ||
| 34 | if (TypeService::isScalarType($config['type'])) { |
|
| 35 | $config['type'] = TypeFactory::getScalarType($config['type']); |
|
| 36 | } |
|
| 37 | ||
| 38 | $this->config = new FieldConfig($config, $this, $this->isFinal); |
|
| 39 | $this->build($this->config); |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return AbstractObjectType |
|