original_string: public function setAdaptor($adaptor = null)
      {
  
          // Set the adaptor
          $this->adaptor = $adaptor;
  
          // If we just want to reset the adaptor
          if ( ! $adaptor ) {
              return $this;
          }
  
          // Validate the adaptor
          if ( ! ( $adaptor instanceof CropAdaptorInterface ) ) {
              throw new \Exception( 'The adaptor need to implement LasseHaslev\Image\Adaptors\CropAdaptorInterface' );
          }
  
          // Return this for binding
          return $this;
      }
code: public function setAdaptor($adaptor = null)
      {
  
          // Set the adaptor
          $this->adaptor = $adaptor;
  
          // If we just want to reset the adaptor
          if ( ! $adaptor ) {
              return $this;
          }
  
          // Validate the adaptor
          if ( ! ( $adaptor instanceof CropAdaptorInterface ) ) {
              throw new \Exception( 'The adaptor need to implement LasseHaslev\Image\Adaptors\CropAdaptorInterface' );
          }
  
          // Return this for binding
          return $this;
      }
code_tokens: public function setAdaptor ( $ adaptor = null ) { // Set the adaptor $ this -> adaptor = $ adaptor ; // If we just want to reset the adaptor if ( ! $ adaptor ) { return $ this ; } // Validate the adaptor if ( ! ( $ adaptor instanceof CropAdaptorInterface ) ) { throw new \ Exception ( 'The adaptor need to implement LasseHaslev\Image\Adaptors\CropAdaptorInterface' ) ; } // Return this for binding return $ this ; }
docstring: Setter for adaptor
  
  @param CropAdaptorInterface $adaptor
  @return CropHandler
docstring_tokens: Setter for adaptor