22 use DateTimeImmutable;
32 private function __construct(
Attribute $attribute)
34 $this->attribute = $attribute;
46 $value = $this->attribute->getValue();
55 return $this->attribute->getName();
61 public static function of()
64 return new self($attribute);
73 $value = $this->attribute->getValue();
82 $value = $this->attribute->getValue();
88 return (
string)$this->attribute->getValue();
93 return (
int)$this->attribute->getValue();
98 return (
float)$this->attribute->getValue();
103 return (
bool)$this->attribute->getValue();
109 return $value ? $value :
null;
115 return $value ? $value :
null;
121 return $value ? $value :
null;
129 $value = $this->attribute->getValue();
138 $value = $this->attribute->getValue();
140 return $refClass::of($value);
148 $value = $this->attribute->getValue();
157 $value = $this->attribute->getValue();
166 $value = $this->attribute->getValue();
175 $value = $this->attribute->getValue();
184 $value = $this->attribute->getValue();
193 $value = $this->attribute->getValue();
194 return array_map(
function ($value) {
204 $value = $this->attribute->getValue();
205 return array_map(
function ($value) {
206 return (
float)$value;
215 $value = $this->attribute->getValue();
224 $value = $this->attribute->getValue();
233 $value = $this->attribute->getValue();
242 $value = $this->attribute->getValue();
251 $value = $this->attribute->getValue();
260 $value = $this->attribute->getValue();
269 $value = $this->attribute->getValue();