public function __construct($tagName, $type) { parent::__construct(sprintf('Tag "%s" for type "%s" not found', $tagName, $type)); $this->tagName = $tagName; $this->type = $type; }