public function __construct($property, $type, $class = null) { parent::__construct(); if ($class) { $this->setToken('IndexClass', $class); } $this->type($type); $this->setToken('Property', $property); }