PHPMD\PHPMD::getInput PHP Метод

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

Returns the input source file or directory path.
public getInput ( ) : string
Результат string
    public function getInput()
    {
        return $this->input;
    }

Usage Example

Пример #1
0
 /**
  * Configures the input source.
  *
  * @param \PDepend\Engine $pdepend
  * @param \PHPMD\PHPMD $phpmd
  * @return void
  */
 private function initInput(Engine $pdepend, PHPMD $phpmd)
 {
     foreach (explode(',', $phpmd->getInput()) as $path) {
         if (is_dir(trim($path))) {
             $pdepend->addDirectory(trim($path));
         } else {
             $pdepend->addFile(trim($path));
         }
     }
 }