private function createEntries($serializablePage, $format)
    {
        $result = array();
        $entries = $serializablePage->getEntries();
        for ($i = 0; $i < count($entries); $i++) {
            $args = array(($i + 1), $entries[$i]['url'], $entries[$i]['title'], $entries[$i]['snippet']);
            array_push($result, self::getFormatClassName($format, $args, true));
        }
        return $result;
    }
private function createEntries($serializablePage, $format)
    {
        $result = array();
        $entries = $serializablePage->getEntries();
        for ($i = 0; $i < count($entries); $i++) {
            $args = array(($i + 1), $entries[$i]['url'], $entries[$i]['title'], $entries[$i]['snippet']);
            array_push($result, self::getFormatClassName($format, $args, true));
        }
        return $result;
    }
private function createEntries ( $ serializablePage , $ format ) { $ result = array ( ) ; $ entries = $ serializablePage -> getEntries ( ) ; for ( $ i = 0 ; $ i < count ( $ entries ) ; $ i ++ ) { $ args = array ( ( $ i + 1 ) , $ entries [ $ i ] [ 'url' ] , $ entries [ $ i ] [ 'title' ] , $ entries [ $ i ] [ 'snippet' ] ) ; array_push ( $ result , self :: getFormatClassName ( $ format , $ args , true ) ) ; } return $ result ; }
Map SerializableSerpPage entries to SerpPageEntries.
The serialization format is resolved at runtime.
@param  SerializableSerpPage $serializablePage
@param  string               $format
@return SerpPageEntryJSON|SerpPageEntryXML|SerpPageEntryYAML
Map SerializableSerpPage entries to SerpPageEntries . The serialization format is resolved at runtime .