Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
propertyvalue.php
1<?php
9namespace Bitrix\Iblock\ORM;
10
16{
17 protected $value;
18
19 protected $description;
20
21 public function __construct($value, $description = null)
22 {
23 $this->value = $value;
24
25 if ($description !== null)
26 {
27 $this->description = $description;
28 }
29 }
30
34 public function getValue()
35 {
36 return $this->value;
37 }
38
42 public function getDescription()
43 {
44 return $this->description;
45 }
46
50 public function hasDescription()
51 {
52 return $this->description !== null;
53 }
54}
__construct($value, $description=null)