public function __construct($type, array $attributes = array()) { parent::__construct($attributes); $this->type = $type; }