diff -r 000000000000 -r 4eba9c11703f web/Zend/Service/Technorati/DailyCountsResult.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Service/Technorati/DailyCountsResult.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,93 @@ +_fields = array( '_date' => 'date', + '_count' => 'count'); + parent::__construct($dom); + + // filter fields + $this->_date = new Zend_Date(strtotime($this->_date)); + $this->_count = (int) $this->_count; + } + + /** + * Returns the date of count. + * + * @return Zend_Date + */ + public function getDate() { + return $this->_date; + } + + /** + * Returns the number of posts containing query on given date. + * + * @return int + */ + public function getCount() { + return $this->_count; + } +}