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;
    }
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;
    }
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 ; }
Assert that the value implements the given interface.

@param string $interface The interface to assert against

@throws AssertionFailureException

@return self
Assert that the value implements the given interface .