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;
    }