public function AddParent($parent)
    {
        $parent = str_replace("::", "\\", $parent);
        
        $this->parents[$parent] = $parent;
        $this->has_parent = true;
        
        return $this;
    }
public function AddParent($parent)
    {
        $parent = str_replace("::", "\\", $parent);
        
        $this->parents[$parent] = $parent;
        $this->has_parent = true;
        
        return $this;
    }
public function AddParent ( $ parent ) { $ parent = str_replace ( "::" , "\\" , $ parent ) ; $ this -> parents [ $ parent ] = $ parent ; $ this -> has_parent = true ; return $ this ; }
Add a parent class.
@param string $parent Name of parent class which may also include its namespace.
@return \Peg\Lib\Definitions\Element\ClassElement
Add a parent class .