src/Container/Model/Struct.php
public function addStructWithAttribute($structName, $attributeName, $attributeType)
    {
        $this->addStruct($structName);
        if (($struct = $this->getStructByName($structName)) instanceof Model) {
            $struct->addAttribute($attributeName, $attributeType);
        }
        return $this;
    }
public function addStructWithAttribute($structName, $attributeName, $attributeType)
    {
        $this->addStruct($structName);
        if (($struct = $this->getStructByName($structName)) instanceof Model) {
            $struct->addAttribute($attributeName, $attributeType);
        }
        return $this;
    }
public function addStructWithAttribute ( $ structName , $ attributeName , $ attributeType ) { $ this -> addStruct ( $ structName ) ; if ( ( $ struct = $ this -> getStructByName ( $ structName ) ) instanceof Model ) { $ struct -> addAttribute ( $ attributeName , $ attributeType ) ; } return $ this ; }
Adds type to structs and its attribute
@param string $structName the original struct name
@param string $attributeName the attribute name
@param string $attributeType the attribute type
@return Struct
Adds type to structs and its attribute