public function compile($content)
    {
        $phpCode = '';
        foreach (token_get_all($content) as $token) {
            $phpCode .= is_array($token) ? $this->parsePHPToken($token) : $token;
        }

        if (count($this->footer) > 0) {
            $phpCode = ltrim($phpCode, PHP_EOL) . PHP_EOL . implode(PHP_EOL, array_reverse($this->footer));
        }

        return $phpCode;
    }