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\PropertyExtractor;
 6 
 7 use Psr\Log\LoggerInterface;
 8 use Team3\PayU\PropertyExtractor\Reader\AnnotationReader;
 9 use Team3\PayU\PropertyExtractor\Reader\ReaderInterface;
10 use Doctrine\Common\Annotations\AnnotationReader as DoctrineAnnotationReader;
11 
12 /**
13  * Will return {@link ExtractorInterface}
14  *
15  * Class PropertyExtractorFactory
16  * @package Team3\PayU\PropertyExtractor
17  */
18 class PropertyExtractorFactory implements PropertyExtractorFactoryInterface
19 {
20     /**
21      * @param LoggerInterface $logger
22      *
23      * @return Extractor
24      */
25     public function build(LoggerInterface $logger)
26     {
27         return new Extractor(
28             $this->getReader($logger),
29             $logger
30         );
31     }
32 
33     /**
34      * @param  LoggerInterface $logger
35      * @return ReaderInterface
36      */
37     private function getReader(LoggerInterface $logger)
38     {
39         return new AnnotationReader(
40             new DoctrineAnnotationReader(),
41             $logger
42         );
43     }
44 }
45 
PayU integration by Krzysztof Gzocha API documentation generated by ApiGen