original_string: public function implement($interface)
      {
          $message = ['Class %s {{does not implement|implements}} interface %s', $this->value, $interface];
          $this->assert((in_array($interface, class_implements($this->value))), $message);
  
          return $this;
      }
code: public function implement($interface)
      {
          $message = ['Class %s {{does not implement|implements}} interface %s', $this->value, $interface];
          $this->assert((in_array($interface, class_implements($this->value))), $message);
  
          return $this;
      }
code_tokens: public function implement ( $ interface ) { $ message = [ 'Class %s {{does not implement|implements}} interface %s' , $ this -> value , $ interface ] ; $ this -> assert ( ( in_array ( $ interface , class_implements ( $ this -> value ) ) ) , $ message ) ; return $ this ; }
docstring: Assert that the value implements the given interface.
  
  @param string $interface The interface to assert against
  
  @throws AssertionFailureException
  
  @return self
docstring_tokens: Assert that the value implements the given interface .