PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.8
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.8
2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 All 108 releases
b-blocks / vendor / enshrined / svg-sanitize / src / ElementReference / Usage.php

Usage.php in bBlocks – Essential Gutenberg Blocks & Patterns Collection 2.1.8, 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 }