static::MAX_LENGTH) { throw new InvalidArgumentException( "Path to full \"{$pathToFull}\" must be less than " . static::MAX_LENGTH . ' chars' ); } if (empty($pathToThumb)) { throw new InvalidArgumentException("Path to thumb can't be empty"); } if (strlen($pathToThumb) > static::MAX_LENGTH) { throw new InvalidArgumentException( "Path to thumb string length \"{$pathToThumb}\" must be less than " . static::MAX_LENGTH . ' chars' ); } $this->pathToFull = $pathToFull; $this->pathToThumb = $pathToThumb; } /** * Return the Full path * * @return string */ public function getFullPath() { return $this->pathToFull; } /** * Return the Thumb path * * @return string */ public function getThumbPath() { return $this->pathToThumb; } }