PayU integration by Krzysztof Gzocha
  • Namespace
  • Class

Namespaces

  • Team3
    • PayU
      • Annotation
      • Communication
        • CurlRequestBuilder
        • HttpStatusParser
        • Notification
        • Process
          • NotificationProcess
          • ResponseDeserializer
        • Request
          • Model
        • Response
          • Model
        • Sender
      • Configuration
        • Credentials
      • Order
        • Autocomplete
          • Strategy
        • Model
          • Buyer
          • Money
          • Products
          • ShippingMethods
          • Traits
        • Transformer
          • UserOrder
            • Strategy
              • Product
              • ShippingMethod
      • PropertyExtractor
        • Reader
      • Serializer
      • SignatureCalculator
        • Encoder
          • Algorithms
          • Strategy
        • ParametersSorter
        • Validator
      • ValidatorBuilder

Classes

  • Team3\PayU\ValidatorBuilder\ValidatorBuilder

Interfaces

  • Team3\PayU\ValidatorBuilder\ValidatorBuilderInterface
 1 <?php
 2 /**
 3  * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
 4  */
 5 namespace Team3\PayU\ValidatorBuilder;
 6 
 7 use Doctrine\Common\Annotations\AnnotationReader;
 8 use Doctrine\Common\Annotations\Reader;
 9 use Symfony\Component\Validator\Validation;
10 use Symfony\Component\Validator\Validator\ValidatorInterface;
11 
12 /**
13  * {@inheritdoc}
14  *
15  * Class ValidatorBuilder
16  * @package Team3\PayU\ValidatorBuilder
17  */
18 class ValidatorBuilder implements ValidatorBuilderInterface
19 {
20     /**
21      * @param Reader $reader
22      *
23      * @return ValidatorInterface
24      */
25     public function getValidator(Reader $reader = null)
26     {
27         if (null === $reader) {
28             $reader = new AnnotationReader();
29         }
30 
31         return Validation::createValidatorBuilder()
32             ->enableAnnotationMapping($reader)
33             ->getValidator();
34     }
35 }
36 
PayU integration by Krzysztof Gzocha API documentation generated by ApiGen