Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
5 / 5 |
| ExtractorResult | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
5 / 5 |
| __construct( $propertyName, $value ) | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
| getPropertyName() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getValue() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| /** | |
| * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl> | |
| */ | |
| namespace Team3\PayU\PropertyExtractor; | |
| /** | |
| * This class is holding value and property name extracted from given object. | |
| * It can be returned by {@link ExtractorInterface} | |
| * | |
| * Class ExtractorResult | |
| * @package Team3\PayU\Annotation\Extractor | |
| */ | |
| class ExtractorResult | |
| { | |
| /** | |
| * @var string | |
| */ | |
| protected $propertyName; | |
| /** | |
| * @var mixed | |
| */ | |
| protected $value; | |
| /** | |
| * @param string $propertyName | |
| * @param mixed $value | |
| */ | |
| public function __construct( | |
| $propertyName, | |
| $value | |
| ) { | |
| $this->propertyName = $propertyName; | |
| $this->value = $value; | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function getPropertyName() | |
| { | |
| return $this->propertyName; | |
| } | |
| /** | |
| * @return mixed | |
| */ | |
| public function getValue() | |
| { | |
| return $this->value; | |
| } | |
| } |