__construct() публичный Метод

public __construct ( Generator $generator )
$generator Generator
 /**
  * @param Generator $generator
  */
 public function __construct(Generator $generator)
 {
     parent::__construct($generator);
     $this->initParsers();
 }
Пример #2
0
 /**
  * Main constructor
  * @uses AbstractModel::setName()
  * @param Generator $generator
  * @param string $name the original name
  */
 public function __construct(Generator $generator, $name)
 {
     parent::__construct($generator);
     $this->setName($name);
 }
 /**
  * @param Generator $generator
  */
 public function __construct(Generator $generator)
 {
     parent::__construct($generator);
     $this->initStructs()->initServices();
 }