get() 공개 메소드

Get calculated path
public get ( ) : string
리턴 string
예제 #1
0
 public function testScriptsPaths()
 {
     $view = new View\Less();
     $view->setInputFile('/var/www/phrozn-test/scripts/some-entry.js')->setOutputDir('/var/www/output');
     $path = new OutputPath\Script($view);
     $this->assertSame('/var/www/output/scripts/some-entry.js', $path->get());
     $view->setInputFile('/var/www/phrozn-test/scripts/sub/folder/some-entry.js')->setOutputDir('/var/www/output');
     $path->setView($view);
     $this->assertSame('/var/www/output/scripts/sub/folder/some-entry.js', $path->get());
     $view->setInputFile('/var/www/phrozn-test/sub/folder/some-entry.js')->setOutputDir('/var/www/output');
     $path->setView($view);
     $this->assertSame('/var/www/output/scripts/some-entry.js', $path->get());
 }
예제 #2
0
파일: Js.php 프로젝트: farazdagi/phrozn
 /**
  * Get output file path
  *
  * @return string
  */
 public function getOutputFile()
 {
     if (!$this->outputFile) {
         $path = new OutputFile($this);
         $this->setOutputFile($path->get());
     }
     return $this->outputFile;
 }
예제 #3
0
파일: Js.php 프로젝트: negativespace/phrozn
 /**
  * Get output file path
  *
  * @return string
  */
 public function getOutputFile()
 {
     $path = new OutputFile($this);
     return $path->get();
 }