__construct() публичный Метод

Constructor.
public __construct ( )
Пример #1
0
 /**
  * Constructor
  *
  * @access public
  */
 public function __construct($path = null)
 {
     if ($path) {
         $this->setPath($path);
         parent::__construct($path);
     }
 }
 /**
  * @param ParserInterface       $parser
  * @param VerboseProgressOutput $progressOutput
  */
 public function __construct(ParserInterface $parser, VerboseProgressOutput $progressOutput)
 {
     parent::__construct();
     $this->parser = $parser;
     $this->files()->name('*.php');
     $this->progressOutput = $progressOutput;
 }
Пример #3
0
 public function __construct()
 {
     parent::__construct();
     $files = $this->getFilesToExclude();
     $this->files()->name('*.php')->name('*.twig')->name('*.xml')->name('*.yml')->ignoreDotFiles(true)->ignoreVCS(true)->exclude('vendor')->filter(function (\SplFileInfo $file) use($files) {
         return !in_array($file->getRelativePathname(), $files, true);
     });
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     foreach ($this->getNames() as $name) {
         $this->name($name);
     }
     $this->files()->ignoreDotFiles(true)->ignoreVCS(true);
 }
Пример #5
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $finder = $this;
     $finder->setReader(new AnnotationReader())->files()->name('*.php')->filter(function (\SplFileInfo $file) use($finder) {
         try {
             $fileInspector = new FileInspector($file->getPathname());
             $classInspector = $fileInspector->getClassInspector($finder->getReader());
             foreach ($finder->getContainsAtLeastOneOf() as $annotation) {
                 if ($classInspector->containsClassAnnotation($annotation) || $classInspector->containsMethodAnnotation($annotation) || $classInspector->containsPropertyAnnotation($annotation)) {
                     return true;
                 }
             }
         } catch (AnnotationScannerException $ex) {
             return false;
         }
         return false;
     });
 }
 public function __construct()
 {
     parent::__construct();
     $this->files()->name('*.php');
 }
Пример #7
0
 public function __construct()
 {
     parent::__construct();
     $this->files()->name('*.php')->name('*.twig')->ignoreDotFiles(true)->ignoreVCS(true)->exclude('vendor');
 }
Пример #8
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->removeAdapters()->addAdapter(new MagentoPhpAdapter(), -50)->setAdapter('magento-php');
 }
Пример #9
0
 /**
  * @param ConsoleOutput $console
  */
 public function __construct(ConsoleOutput $console)
 {
     $this->console = $console;
     parent::__construct();
 }
Пример #10
0
 public function __construct()
 {
     parent::__construct();
 }