| 1 | <?php  | 
            ||
| 20 | abstract class AbstractProvider implements Provider  | 
            ||
| 21 | { | 
            ||
| 22 | /**  | 
            ||
| 23 | * @var ZoneInfoFactory  | 
            ||
| 24 | */  | 
            ||
| 25 | private $factory;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * AbstractProvider Constructor.  | 
            ||
| 29 | */  | 
            ||
| 30 | public function __construct()  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * Returns the current time as seconds since January 1, 1970 UTC.  | 
            ||
| 37 | *  | 
            ||
| 38 | * @return int  | 
            ||
| 39 | */  | 
            ||
| 40 | protected function getCurrentTimestamp()  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * Returns the default values for creating ZoneInfo.  | 
            ||
| 47 | *  | 
            ||
| 48 | * @return array  | 
            ||
| 49 | */  | 
            ||
| 50 | protected function getDefaults()  | 
            ||
| 59 | |||
| 60 | /**  | 
            ||
| 61 | * Creates ZoneInfo from the given parameters via the ZoneInfoFactory.  | 
            ||
| 62 | *  | 
            ||
| 63 | * @param array $data  | 
            ||
| 64 | *  | 
            ||
| 65 | * @return ZoneInfo  | 
            ||
| 66 | */  | 
            ||
| 67 | protected function returnResult(array $data)  | 
            ||
| 71 | }  | 
            ||
| 72 |