public function __construct($type, $name, $isArray, array $elements = array()) { $this->type = $type; $this->name = $name; $this->isArray = (bool) $isArray; $this->elements = $elements; }