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

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

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

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

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

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