WsdlToPhp\PackageGenerator\Model\AbstractModel::__construct PHP Method

__construct() public method

Main constructor
public __construct ( Generator $generator, string $name )
$generator WsdlToPhp\PackageGenerator\Generator\Generator
$name string the original name
    public function __construct(Generator $generator, $name)
    {
        parent::__construct($generator);
        $this->setName($name);
    }

Usage Example

 /**
  * Main constructor
  * @see AbstractModel::__construct()
  * @uses StructAttribute::setType()
  * @uses AbstractModel::setOwner()
  * @param Generator $generator
  * @param string $name the original name
  * @param string $type the type
  * @param Struct $struct defines the struct which owns this value
  */
 public function __construct(Generator $generator, $name, $type, Struct $struct)
 {
     parent::__construct($generator, $name);
     $this->setType($type)->setOwner($struct);
 }
All Usage Examples Of WsdlToPhp\PackageGenerator\Model\AbstractModel::__construct