__construct() public method

Constructor.
public __construct ( )
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
     });
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     foreach ($this->getNames() as $name) {
         $this->name($name);
     }
     $this->files()->ignoreDotFiles(true)->ignoreVCS(true);
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 7
0
 public function __construct()
 {
     parent::__construct();
     $this->files()->name('*.php')->name('*.twig')->ignoreDotFiles(true)->ignoreVCS(true)->exclude('vendor');
 }
Ejemplo n.º 8
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->removeAdapters()->addAdapter(new MagentoPhpAdapter(), -50)->setAdapter('magento-php');
 }
Ejemplo n.º 9
0
 /**
  * @param ConsoleOutput $console
  */
 public function __construct(ConsoleOutput $console)
 {
     $this->console = $console;
     parent::__construct();
 }
Ejemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
 }