/**
  * Initialize dependencies.
  *
  * @param \Magento\Framework\Api\Config\Reader $configReader
  * @param string|null $sourceClassName
  * @param string|null $resultClassName
  * @param Io $ioObject
  * @param \Magento\Framework\Code\Generator\CodeGeneratorInterface $classGenerator
  * @param DefinedClasses $definedClasses
  */
 public function __construct(\Magento\Framework\Api\Config\Reader $configReader, $sourceClassName = null, $resultClassName = null, Io $ioObject = null, \Magento\Framework\Code\Generator\CodeGeneratorInterface $classGenerator = null, DefinedClasses $definedClasses = null)
 {
     $sourceClassName .= 'Interface';
     $this->configReader = $configReader;
     parent::__construct($sourceClassName, $resultClassName, $ioObject, $classGenerator, $definedClasses);
 }
Exemplo n.º 2
0
 /**
  * Initialize dependencies.
  *
  * @param string|null $sourceClassName
  * @param string|null $resultClassName
  * @param Io|null $ioObject
  * @param CodeGenerator\CodeGeneratorInterface|null $classGenerator
  * @param \Magento\Framework\Code\Generator\DefinedClasses|null $definedClasses
  */
 public function __construct($sourceClassName = null, $resultClassName = null, Io $ioObject = null, CodeGenerator\CodeGeneratorInterface $classGenerator = null, \Magento\Framework\Code\Generator\DefinedClasses $definedClasses = null)
 {
     $this->typeProcessor = new \Magento\Framework\Reflection\TypeProcessor();
     parent::__construct($sourceClassName, $resultClassName, $ioObject, $classGenerator, $definedClasses);
 }