getName() public method

Returns the physical file name for this object.
public getName ( ) : string
return string
コード例 #1
0
 /**
  * Sets the source file for this item.
  *
  * @param \PDepend\Source\AST\ASTCompilationUnit $compilationUnit
  * @return void
  */
 public function setCompilationUnit(ASTCompilationUnit $compilationUnit)
 {
     if ($this->compilationUnit === null || $this->compilationUnit->getName() === null) {
         $this->compilationUnit = $compilationUnit;
     }
 }
 /**
  * testGetNameReturnsTheFileName
  * 
  * @return void
  */
 public function testGetNameReturnsTheFileName()
 {
     $file = new ASTCompilationUnit(__FILE__);
     $this->assertEquals(__FILE__, $file->getName());
 }