示例#1
0
 /**
  * This method will return <b>true</b> when the parameter is passed by
  * reference.
  *
  * @return boolean
  * @since 0.9.5
  */
 public function isPassedByReference()
 {
     return $this->_formalParameter->isPassedByReference();
 }
示例#2
0
 /**
  * testIsPassedByReferenceCanBeSetToTrue
  *
  * @return void
  * @group pdepend
  * @group pdepend::ast
  * @group unittest
  */
 public function testIsPassedByReferenceCanBeSetToTrue()
 {
     $param = new PHP_Depend_Code_ASTFormalParameter();
     $param->setPassedByReference();
     self::assertTrue($param->isPassedByReference());
 }