public function __construct($categoryId) { parent::__construct(sprintf('The category with the id "%s" does not exist.', $categoryId)); $this->categoryId = $categoryId; }