Example #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;
 }
Example #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;
 }