Repository navigation
Expand file tree
/
Copy pathStructProperty.php
More file actions
63 lines (52 loc) · 1.59 KB
/
Copy pathStructProperty.php
File metadata and controls
63 lines (52 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
declare(strict_types=1);
namespace NeoVg\Struct\StructProperty;
use NeoVg\Struct\StructAbstract;
/**
* Class StructProperty
*/
class StructProperty extends DefaultProperty
{
/**
* @var StructAbstract
*/
protected $_value;
####################################################################################################################
# Metadata
####################################################################################################################
/**
* @return bool
*/
public function containsStruct(): bool
{
return true;
}
####################################################################################################################
# Dirty State
####################################################################################################################
/**
* Shortcut for setting this property to be clean.
*
* @return $this
*/
public function setClean(): DefaultProperty
{
if ($this->_value !== null) {
$this->_value->clean(false);
}
$this->_isDirty = false;
return $this;
}
####################################################################################################################
# Debug
####################################################################################################################
/**
* @return array
*/
public function __debugInfo()
{
return parent::__debugInfo() + [
'[containsStruct]' => true,
];
}
}