1 | <?php |
||
16 | class IpManager implements IpManagerInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var \Doctrine\Common\Persistence\ObjectManager |
||
20 | */ |
||
21 | protected $entity_manager; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $class; |
||
27 | |||
28 | /** |
||
29 | * @var \Doctrine\Common\Persistence\ObjectRepository |
||
30 | */ |
||
31 | protected $entity_repository; |
||
32 | |||
33 | public function __construct(RegistryInterface $registry, $class) |
||
39 | |||
40 | /** |
||
41 | * @return \Doctrine\Common\Persistence\ObjectManager |
||
42 | */ |
||
43 | protected function getEntityManager() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | protected function getEntityRepository() |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function findIpAddress($ip, $environment) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function createIp() |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function saveIp(IpInterface $ip) |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | public function deleteIp(IpInterface $ip) |
||
102 | } |
||
103 |