equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /* |
|
4 * This file is part of the Symfony package. |
|
5 * |
|
6 * (c) Fabien Potencier <fabien@symfony.com> |
|
7 * |
|
8 * For the full copyright and license information, please view the LICENSE |
|
9 * file that was distributed with this source code. |
|
10 */ |
|
11 |
|
12 namespace Symfony\Component\Security\Acl\Voter; |
|
13 |
|
14 /** |
|
15 * This class is a lightweight wrapper around field vote requests which does |
|
16 * not violate any interface contracts. |
|
17 * |
|
18 * @author Johannes M. Schmitt <schmittjoh@gmail.com> |
|
19 */ |
|
20 class FieldVote |
|
21 { |
|
22 private $domainObject; |
|
23 private $field; |
|
24 |
|
25 public function __construct($domainObject, $field) |
|
26 { |
|
27 $this->domainObject = $domainObject; |
|
28 $this->field = $field; |
|
29 } |
|
30 |
|
31 public function getDomainObject() |
|
32 { |
|
33 return $this->domainObject; |
|
34 } |
|
35 |
|
36 public function getField() |
|
37 { |
|
38 return $this->field; |
|
39 } |
|
40 } |