function __construct(Phlickr_Api $api, $totalPhotos, $perPage) { parent::__construct($api, 'MOCK PHOTOLIST REQUEST'); $this->perPage = (int) $perPage; $this->totalPhotos = (int) $totalPhotos; $this->totalPages = (int) ($totalPhotos / $perPage) + 1; }
/** * Create a mock Request that returns the provided xml * * @param object Phlickr_Api. * @param string the name of the method. * @param string the xml to return. */ function __construct(Phlickr_Api $api, $method, $xmlToReturn) { parent::__construct($api, $method); $this->xmlToReturn = (string) $xmlToReturn; }