<?php
/**
 * core.framework
 *
 * @category  Core
 * @package   Core_Embed
 * @copyright Copyright (c) 2011. Burza d.o.o. (http://web.burza.hr/en/)
 * @license   proprietary
 */

/**
 * @category  Core
 * @package   Core_Embed
 * @copyright Copyright (c) 2011. Burza d.o.o. (http://web.burza.hr/en/)
 * @license   proprietary
 */
class Core_Embed_Parser_Image extends Core_Embed_Parser_Abstract
{
    /**
     * @param string $url
     *
     * @return Core_Embed_Response_Interface
     */
    public function _parse($url)
    {
        // this is an image URL, we just need to point that out
        $response = array(
            'type'  => Core_Embed_Response::TYPE_IMAGE,
            'url'   => $url,
            'title' => $url,
        );
        return new Core_Embed_Response($response);
    }    
}
