コード例 #1
0
 /**
  * Get the attributes from the container.
  *
  * @return array
  */
 public function getAttributes()
 {
     $attributes = parent::getAttributes();
     $resolver = $this->getTypeResolver();
     if (isset($resolver)) {
         $attributes['resolveType'] = $resolver;
     }
     return $attributes;
 }
コード例 #2
0
 /**
  * Special fields present on this connection type.
  *
  * @param        $name
  * @param string $type
  */
 public function __construct($name, $type)
 {
     parent::__construct();
     $this->name = $name;
     $this->type = $type;
 }