identifier = $identifier; $type = gettype($identifier); if ($type === 'string') { $message = "'{$identifier}' is not a valid data file identifier"; } else { $message = "A valid identifier should be a string, {$type} received"; } parent::__construct($message, \Punic\Exception::INVALID_DATAFILE, $previous); } /** * Retrieves the bad data file identifier. */ public function getIdentifier() { return $this->identifier; } }