public function addImplement($interfaceName)
    {
        if ($this->isObjectNameValid($interfaceName) !== true) {
            throw new InvalidArgumentException('The name of the interface is not valid.');
        }

        $this->implements[$interfaceName] = $interfaceName;

        return $this;
    }
public function addImplement($interfaceName)
    {
        if ($this->isObjectNameValid($interfaceName) !== true) {
            throw new InvalidArgumentException('The name of the interface is not valid.');
        }

        $this->implements[$interfaceName] = $interfaceName;

        return $this;
    }
public function addImplement ( $ interfaceName ) { if ( $ this -> isObjectNameValid ( $ interfaceName ) !== true ) { throw new InvalidArgumentException ( 'The name of the interface is not valid.' ) ; } $ this -> implements [ $ interfaceName ] = $ interfaceName ; return $ this ; }
Add an interface that this class implements.

@param string $interfaceName The name of the interface that is implemented.
@return \Wingu\OctopusCore\CodeGenerator\PHP\OOP\ClassGenerator
@throws \Wingu\OctopusCore\CodeGenerator\Exceptions\InvalidArgumentException If the name is not valid.
Add an interface that this class implements .