| Total Complexity | 6 | 
| Total Lines | 67 | 
| Duplicated Lines | 0 % | 
| Changes | 3 | ||
| Bugs | 0 | Features | 2 | 
| 1 | <?php | ||
| 13 | class ODataBagContent | ||
| 14 | { | ||
| 15 | /** | ||
| 16 | * The type name of the element. | ||
| 17 | * | ||
| 18 | * @var string|null | ||
| 19 | */ | ||
| 20 | private $type; | ||
| 21 | /** | ||
| 22 | * Represents elements of the bag. | ||
| 23 | * | ||
| 24 | * @var string[]|ODataPropertyContent[]|null | ||
| 25 | */ | ||
| 26 | private $propertyContents = []; | ||
| 27 | |||
| 28 | /** | ||
| 29 | * ODataBagContent constructor. | ||
| 30 | * @param string $type | ||
| 31 | * @param ODataPropertyContent[]|string[] $propertyContents | ||
| 32 | */ | ||
| 33 | public function __construct(string $type = null, array $propertyContents = null) | ||
| 38 | } | ||
| 39 | |||
| 40 | /** | ||
| 41 | * @return string|null | ||
| 42 | */ | ||
| 43 | public function getType(): ?string | ||
| 44 |     { | ||
| 45 | return $this->type; | ||
| 46 | } | ||
| 47 | |||
| 48 | /** | ||
| 49 | * @param string|null $type | ||
| 50 | * @return ODataBagContent | ||
| 51 | */ | ||
| 52 | public function setType(?string $type): ODataBagContent | ||
| 53 |     { | ||
| 54 | $this->type = $type; | ||
| 55 | return $this; | ||
| 56 | } | ||
| 57 | |||
| 58 | /** | ||
| 59 | * @return ODataPropertyContent[]|string[] | ||
| 60 | */ | ||
| 61 | public function getPropertyContents(): ?array | ||
| 62 |     { | ||
| 63 | return $this->propertyContents; | ||
| 64 | } | ||
| 65 | |||
| 66 | /** | ||
| 67 | * @param ODataPropertyContent[]|string[] $propertyContents | ||
| 68 | * @return ODataBagContent | ||
| 69 | */ | ||
| 70 | public function setPropertyContents(?array $propertyContents): ODataBagContent | ||
| 74 | } | ||
| 75 | |||
| 76 | public function addPropertyContent($propertyContent) | ||
| 80 | } | ||
| 81 | } | ||
| 82 |