PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.9.16
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.9.16
1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 1.9.14 All 163 releases
woocommerce-pos / vendor_prefixed / phpfastcache / phpfastcache / lib / Phpfastcache / Entities / DriverStatistic.php

DriverStatistic.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.9.16, at vendor_prefixed/phpfastcache/phpfastcache/lib/Phpfastcache/Entities/DriverStatistic.php

112 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 *
5 * This file is part of phpFastCache.
6 *
7 * @license MIT License (MIT)
8 *
9 * For full copyright and license information, please see the docs/CREDITS.txt file.
10 *
11 * @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> https://www.phpfastcache.com
12 * @author Georges.L (Geolim4) <contact@geolim4.com>
13 *
14 */
15 declare (strict_types=1);
16 namespace WCPOS\Vendor\Phpfastcache\Entities;
17
18 /**
19 * Class DriverStatistic
20 * @package phpFastCache\Entities
21 */
22 class DriverStatistic
23 {
24 /**
25 * @var string
26 */
27 protected $info = '';
28 /**
29 * @var int
30 */
31 protected $size = 0;
32 /**
33 * @var string
34 */
35 protected $data = '';
36 /**
37 * @var mixed
38 */
39 protected $rawData;
40 /**
41 * @return string Return info or false if no information available
42 */
43 public function getInfo() : string
44 {
45 return $this->info;
46 }
47 /**
48 * @param string $info
49 * @return $this
50 */
51 public function setInfo(string $info) : self
52 {
53 $this->info = $info;
54 return $this;
55 }
56 /**
57 * @return int Return size in octet or false if no information available
58 */
59 public function getSize() : int
60 {
61 return $this->size;
62 }
63 /**
64 * @param int $size
65 * @return $this
66 */
67 public function setSize(int $size)
68 {
69 $this->size = $size;
70 return $this;
71 }
72 /**
73 * @return mixed
74 */
75 public function getData()
76 {
77 return $this->data;
78 }
79 /**
80 * @param mixed $data
81 * @return $this
82 */
83 public function setData($data) : self
84 {
85 $this->data = $data ?: '';
86 return $this;
87 }
88 /**
89 * @return mixed
90 */
91 public function getRawData()
92 {
93 return $this->rawData;
94 }
95 /**
96 * @param mixed $raw
97 * @return $this
98 */
99 public function setRawData($raw) : self
100 {
101 $this->rawData = $raw;
102 return $this;
103 }
104 /**
105 * @return array
106 */
107 public function getPublicDesc() : array
108 {
109 return ['Info' => 'Cache Information', 'Size' => 'Cache Size', 'Data' => 'Cache items keys', 'RawData' => 'Cache raw data'];
110 }
111 }
112