1 | <?php |
||
17 | class RangeManager implements RangeManagerInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var \Doctrine\Common\Persistence\ObjectManager |
||
21 | */ |
||
22 | protected $entity_manager; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $class; |
||
28 | |||
29 | /** |
||
30 | * @var \Doctrine\Common\Persistence\ObjectRepository |
||
31 | */ |
||
32 | protected $entity_repository; |
||
33 | |||
34 | public function __construct(RegistryInterface $registry, $class) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function findByIpAddress($ip, $environment) |
||
56 | |||
57 | public function createRangeFromNetwork($network) |
||
66 | |||
67 | /** |
||
68 | * @return \Doctrine\Common\Persistence\ObjectManager |
||
69 | */ |
||
70 | protected function getEntityManager() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | protected function getEntityRepository() |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function createRange() |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function saveRange(RangeInterface $range) |
||
103 | |||
104 | /** |
||
105 | * {@inheritdoc} |
||
106 | */ |
||
107 | public function deleteRange(RangeInterface $range) |
||
114 | } |
||
115 |