![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/mirasvit/module-report/src/Report/Api/Service/ |
<?php /** * Mirasvit * * This source file is subject to the Mirasvit Software License, which is available at https://mirasvit.com/license/. * Do not edit or add to this file if you wish to upgrade the to newer versions in the future. * If you wish to customize this module for your needs. * Please refer to http://www.magentocommerce.com for more information. * * @category Mirasvit * @package mirasvit/module-report * @version 1.4.27 * @copyright Copyright (C) 2024 Mirasvit (https://mirasvit.com/) */ namespace Mirasvit\Report\Api\Service; use Mirasvit\Core\Model\Date; interface DateServiceInterface { const TODAY = 'today'; const YESTERDAY = 'yesterday'; const LAST_7_DAYS = 'last7Days'; const LAST_30_DAYS = 'last30Days'; const LAST_90_DAYS = 'last90Days'; const LAST_365_DAYS = 'last365days'; const THIS_WEEK = 'week'; const THIS_MONTH = 'month'; const THIS_QUARTER = 'quarter'; const THIS_YEAR = 'year'; const PREVIOUS_WEEK = 'prev_week'; const PREVIOUS_MONTH = 'prev_month'; const PREVIOUS_QUARTER = 'prev_quarter'; const PREVIOUS_YEAR = 'prev_year'; const FISCAL_THIS_MONTH = 'month_fiscal'; const FISCAL_THIS_QUARTER = 'quarter_fiscal'; const FISCAL_THIS_YEAR = 'year_fiscal'; const FISCAL_PREV_MONTH = 'prev_month_fiscal'; const FISCAL_PREV_QUARTER = 'prev_quarter_fiscal'; const FISCAL_PREV_YEAR = 'prev_year_fiscal'; const LIFETIME = 'lifetime'; const CUSTOM = 'custom'; const OFFSET_PERIOD = 'period'; const OFFSET_WEEK = 'week'; const OFFSET_MONTH = 'month'; const OFFSET_YEAR = 'year'; /** * @param bool $addHint * * @return string[] */ public function getIntervals($addHint = false); /** * @param string $code * * @return string */ public function getIntervalHint($code); /** * @param string $code * @param bool $inStoreTZ * * @return IntervalInterface */ public function getInterval($code, $inStoreTZ = false); /** * @param IntervalInterface $interval * @param string $offset * @param bool $inStoreTZ * * @return IntervalInterface */ public function getPreviousInterval($interval, $offset, $inStoreTZ = false); /** * @param string $date * @param string $format YYYY-MM-DDT hh:mm:ss * * @return mixed */ public function toZendDate($date, $format = Date::ISO_8601); /** * @param Date|string $date * * @return string */ public function toMysqlDate($date); /** * @param Date|string $from * @param Date|string $to * * @return IntervalInterface */ public function toInterval($from, $to); }