Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
base.php
1<?php
2
4
7
12abstract class Base
13{
15 protected $locationRepositories = [];
16
17 const REPO_PRIORITY_A = 'A';
18 const REPO_PRIORITY_B = 'B';
19 const REPO_PRIORITY_C = 'C';
20
26 public function __construct(array $locationRepositories = [])
27 {
29 }
30
36 {
37 foreach($locationRepositories as $repository)
38 {
39 if(!($repository instanceof IRepository))
40 {
41 throw new ArgumentOutOfRangeException('locationRepositories');
42 }
43
44 $this->locationRepositories[] = $repository;
45 }
46
47 return $this;
48 }
49}
__construct(array $locationRepositories=[])
Definition base.php:26
setLocationRepositories(array $locationRepositories)
Definition base.php:35