gossi\codegen\model\AbstractPhpStruct::__construct PHP Method

__construct() public method

Creates a new struct
public __construct ( string $name = null )
$name string the fqcn
    public function __construct($name = null)
    {
        $this->setQualifiedName($name);
        $this->docblock = new Docblock();
        $this->useStatements = new Map();
        $this->requiredFiles = new Set();
        $this->methods = new Map();
    }

Usage Example

Esempio n. 1
0
 /**
  * Creates a new PHP class
  *
  * @param string $name the qualified name
  */
 public function __construct($name = null)
 {
     parent::__construct($name);
     $this->initProperties();
     $this->initConstants();
     $this->initInterfaces();
 }
All Usage Examples Of gossi\codegen\model\AbstractPhpStruct::__construct