original_string: protected function setQuality($quality)
      {
          $quality = is_null($quality) ? 90 : $quality;
          $quality = $quality === 0 ? 1 : $quality;
  
          if ($quality < 0 || $quality > 100) {
              throw new \Intervention\Image\Exception\InvalidArgumentException(
                  'Quality must range from 0 to 100.'
              );
          }
  
          $this->quality = intval($quality);
  
          return $this;
      }
code: protected function setQuality($quality)
      {
          $quality = is_null($quality) ? 90 : $quality;
          $quality = $quality === 0 ? 1 : $quality;
  
          if ($quality < 0 || $quality > 100) {
              throw new \Intervention\Image\Exception\InvalidArgumentException(
                  'Quality must range from 0 to 100.'
              );
          }
  
          $this->quality = intval($quality);
  
          return $this;
      }
code_tokens: protected function setQuality ( $ quality ) { $ quality = is_null ( $ quality ) ? 90 : $ quality ; $ quality = $ quality === 0 ? 1 : $ quality ; if ( $ quality < 0 || $ quality > 100 ) { throw new \ Intervention \ Image \ Exception \ InvalidArgumentException ( 'Quality must range from 0 to 100.' ) ; } $ this -> quality = intval ( $ quality ) ; return $ this ; }
docstring: Determines output quality
  
  @param int $quality
docstring_tokens: Determines output quality