Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
PropertyFeatureCollection.php
1<?php
2
4
7
17{
19 protected $repository;
20
22 {
23 $this->repository = $repository;
24 }
25
26 public function findBySetting(string $field, $value): ?PropertyFeature
27 {
29 foreach ($this->getIterator() as $item)
30 {
31 if ($item->getSetting($field) === $value)
32 {
33 return $item;
34 }
35 }
36
37 return null;
38 }
39
40 public function findByFeatureId(string $featureId): ?PropertyFeature
41 {
43 foreach ($this->getIterator() as $item)
44 {
45 if ($item->getFeatureId() === $featureId)
46 {
47 return $item;
48 }
49 }
50
51 return null;
52 }
53
54 public function saveInternal(): Result
55 {
56 return new Result();
57 }
58
59 public function deleteInternal(): Result
60 {
61 return new Result();
62 }
63}
__construct(PropertyFeatureRepositoryContract $repository)