php_parser.php
public function parse($response)
    {
        $this->tags = array();
        $this->page = $this->createPage($response);
        $parser     = $this->createParser($this);
        $parser->parse($response->getContent());
        $this->acceptPageEnd();
        $page = $this->page;
        $this->free();

        return $page;
    }
public function parse($response)
    {
        $this->tags = array();
        $this->page = $this->createPage($response);
        $parser     = $this->createParser($this);
        $parser->parse($response->getContent());
        $this->acceptPageEnd();
        $page = $this->page;
        $this->free();

        return $page;
    }
Reads the raw content and send events into the page to be built.

@param $response SimpleHttpResponse  Fetched response.

@return SimplePage                   Newly parsed page.