public function resolveExtending()
    {
        /**
         * Extending of view.
         */
        preg_match_all('/@extends\(\'([a-zA-Z0-9\.\-]+)\'\)/', $this->prepared, $matches);

        if(isset($matches[1][0]))
        {
            $this->extends  = trim($matches[1][0]);

            $this->prepared = trim(str_replace($matches[0][0], '', $this->prepared));
        }

        /**
         * Tag means that this view should not be extending.
         */
        preg_match_all('/@no-extends/', $this->prepared, $matches);

        if(isset($matches[0][0]) && count($matches[0][0]) == 1)
        {
            $this->extends  = false;

            $this->prepared = trim(str_replace($matches[0][0], '', $this->prepared));
        }
    }