invalidHeight() публичный статический Метод

public static invalidHeight ( )
Пример #1
0
 /**
  * Set the target height.
  * Matches with Glide's 'h'-parameter.
  *
  * @param int $height
  *
  * @return $this
  *
  * @throws \Spatie\MediaLibrary\Exceptions\InvalidConversionParameter
  */
 public function setHeight(int $height)
 {
     if ($height < 1) {
         throw InvalidConversionParameter::invalidHeight();
     }
     $this->setManipulationParameter('h', $height);
     return $this;
 }