src/Directive/Directive.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 22-30 (lines=9) @@
                                 | 
                            
                                                            
                                    | 19 | 
                                     | 
                                     | 
                                
                                                            
                                    | 20 | 
                                     | 
                                        protected $isFinal = false;  | 
                                
                                                            
                                    | 21 | 
                                     | 
                                     | 
                                
                                                            
                                    | 22 | 
                                     | 
                                        public function __construct(array $config = [])  | 
                                
                                                            
                                    | 23 | 
                                     | 
                                        { | 
                                
                                                            
                                    | 24 | 
                                     | 
                                            if (empty($config['name'])) { | 
                                
                                                            
                                    | 25 | 
                                     | 
                                                $config['name'] = $this->getName();  | 
                                
                                                            
                                    | 26 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 27 | 
                                     | 
                                     | 
                                
                                                            
                                    | 28 | 
                                     | 
                                            $this->config = new DirectiveConfig($config, $this, $this->isFinal);  | 
                                
                                                            
                                    | 29 | 
                                     | 
                                            $this->build($this->config);  | 
                                
                                                            
                                    | 30 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 31 | 
                                     | 
                                     | 
                                
                                                            
                                    | 32 | 
                                     | 
                                        public function build(DirectiveConfig $config)  | 
                                
                                                            
                                    | 33 | 
                                     | 
                                        { | 
                                
                                                                        
                 
                                                            
                    
src/Type/Union/AbstractUnionType.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 32-40 (lines=9) @@
                                 | 
                            
                                                            
                                    | 29 | 
                                     | 
                                         * ObjectType constructor.  | 
                                
                                                            
                                    | 30 | 
                                     | 
                                         * @param $config  | 
                                
                                                            
                                    | 31 | 
                                     | 
                                         */  | 
                                
                                                            
                                    | 32 | 
                                     | 
                                        public function __construct($config = [])  | 
                                
                                                            
                                    | 33 | 
                                     | 
                                        { | 
                                
                                                            
                                    | 34 | 
                                     | 
                                            if (empty($config)) { | 
                                
                                                            
                                    | 35 | 
                                     | 
                                                $config['name']  = $this->getName();  | 
                                
                                                            
                                    | 36 | 
                                     | 
                                                $config['types'] = $this->getTypes();  | 
                                
                                                            
                                    | 37 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 38 | 
                                     | 
                                     | 
                                
                                                            
                                    | 39 | 
                                     | 
                                            $this->config = new UnionTypeConfig($config, $this, $this->isFinal);  | 
                                
                                                            
                                    | 40 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 41 | 
                                     | 
                                     | 
                                
                                                            
                                    | 42 | 
                                     | 
                                        /**  | 
                                
                                                            
                                    | 43 | 
                                     | 
                                         * @return AbstractObjectType[]|AbstractScalarType[]  |