Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
5 / 5 |
PayU | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
3 | |
100.00% |
5 / 5 |
__construct(array $values = []) | |
100.00% |
1 / 1 |
2 | |
100.00% |
4 / 4 |
|||
getPropertyName() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
/** | |
* @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl> | |
*/ | |
namespace Team3\PayU\Annotation; | |
use Doctrine\Common\Annotations\Annotation\Target; | |
/** | |
* This annotation will help to transform user order into library's order object. | |
* Just put this annotation on any method and define it's propertyName to let library know | |
* what this method will return. To see all possible propertyNames please look into | |
* {@link \Team3\PayU\Order\Transformer\UserOrder\TransformerProperties} | |
* | |
* Class PayU | |
* @package Team3\PayU\Annotation | |
* @Annotation | |
* @Target({"METHOD"}) | |
*/ | |
class PayU | |
{ | |
/** | |
* @var string | |
*/ | |
public $propertyName; | |
/** | |
* @param array $values | |
*/ | |
public function __construct(array $values = []) | |
{ | |
if (array_key_exists('propertyName', $values)) { | |
$this->propertyName = $values['propertyName']; | |
} | |
} | |
/** | |
* @return string | |
*/ | |
public function getPropertyName() | |
{ | |
return $this->propertyName; | |
} | |
} |