src/Container/Model/Struct.php
public function addStruct($structName, $isStruct = true, $structType = '')
    {
        if (null === (empty($structType) ? $this->get($structName) : $this->getByType($structName, $structType))) {
            $model = new Model($this->generator, $structName, $isStruct);
            $this->add($model->setInheritance($structType));
        }
        return $this;
    }
public function addStruct($structName, $isStruct = true, $structType = '')
    {
        if (null === (empty($structType) ? $this->get($structName) : $this->getByType($structName, $structType))) {
            $model = new Model($this->generator, $structName, $isStruct);
            $this->add($model->setInheritance($structType));
        }
        return $this;
    }
public function addStruct ( $ structName , $ isStruct = true , $ structType = '' ) { if ( null === ( empty ( $ structType ) ? $ this -> get ( $ structName ) : $ this -> getByType ( $ structName , $ structType ) ) ) { $ model = new Model ( $ this -> generator , $ structName , $ isStruct ) ; $ this -> add ( $ model -> setInheritance ( $ structType ) ) ; } return $ this ; }
Adds type to structs
@param string $structName the original struct name
@param bool $isStruct whether the Struct has to be generated or not
@param string $structType the original struct type
@return Struct
Adds type to structs