1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\PropertyExtractor;
6
7 /**
8 * This class is holding value and property name extracted from given object.
9 * It can be returned by {@link ExtractorInterface}
10 *
11 * Class ExtractorResult
12 * @package Team3\PayU\Annotation\Extractor
13 */
14 class ExtractorResult
15 {
16 /**
17 * @var string
18 */
19 protected $propertyName;
20
21 /**
22 * @var mixed
23 */
24 protected $value;
25
26 /**
27 * @param string $propertyName
28 * @param mixed $value
29 */
30 public function __construct(
31 $propertyName,
32 $value
33 ) {
34 $this->propertyName = $propertyName;
35 $this->value = $value;
36 }
37
38 /**
39 * @return string
40 */
41 public function getPropertyName()
42 {
43 return $this->propertyName;
44 }
45
46 /**
47 * @return mixed
48 */
49 public function getValue()
50 {
51 return $this->value;
52 }
53 }
54