PluginProbe
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization / trunk
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization vtrunk
4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 2.5.5 2.5.6 2.5.7 3.0.0 3.0.1 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.11.0 3.11.1 3.11.2 3.11.3 3.12.0 All 135 releases
optimole-wp / vendor / enshrined / svg-sanitize / src / ElementReference / Usage.php

Usage.php in Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization trunk, at vendor/enshrined/svg-sanitize/src/ElementReference/Usage.php

49 lines 753 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace enshrined\svgSanitize\ElementReference;
3
4 class Usage
5 {
6 /**
7 * @var Subject
8 */
9 protected $subject;
10
11 /**
12 * @var int
13 */
14 protected $count;
15
16 /**
17 * @param Subject $subject
18 * @param int $count
19 */
20 public function __construct(Subject $subject, $count = 1)
21 {
22 $this->subject = $subject;
23 $this->count = (int)$count;
24 }
25
26 /**
27 * @param int $by
28 */
29 public function increment($by = 1)
30 {
31 $this->count += (int)$by;
32 }
33
34 /**
35 * @return Subject
36 */
37 public function getSubject()
38 {
39 return $this->subject;
40 }
41
42 /**
43 * @return int
44 */
45 public function getCount()
46 {
47 return $this->count;
48 }
49 }