public function AddFunction(
        \Peg\Lib\Definitions\Element\FunctionElement $function,
        $header,
        $namespace="\\"
    )
    {
        $this->AddHeader($header);

        $this->headers[$header]->AddFunction($function, $namespace);
    }
public function AddFunction(
        \Peg\Lib\Definitions\Element\FunctionElement $function,
        $header,
        $namespace="\\"
    )
    {
        $this->AddHeader($header);

        $this->headers[$header]->AddFunction($function, $namespace);
    }
public function AddFunction ( \ Peg \ Lib \ Definitions \ Element \ FunctionElement $ function , $ header , $ namespace = "\\" ) { $ this -> AddHeader ( $ header ) ; $ this -> headers [ $ header ] -> AddFunction ( $ function , $ namespace ) ; }
Adds a function to the symbols table.
@param \Peg\Lib\Definitions\Element\FunctionElement $function
@param string $header Name of header file where the constant resides.
@param string $namespace If omitted the constant is added at a global scope.
Adds a function to the symbols table .