public function __construct($entityName, $id) { $this->entityName = $entityName; $this->id = $id; parent::__construct('The filter dependency "' . $this->entityName . ' with the id "' . $this->id . '" was not found.', 0); }