public function __construct($name, array $attributes = array()) { parent::__construct($attributes); $this->parts = self::prepareName($name); }