gossi\codegen\model\PhpParameter::setPassedByReference PHP Method

setPassedByReference() public method

Sets whether this parameter is passed by reference
public setPassedByReference ( boolean $bool )
$bool boolean `true` if passed by reference and `false` if not
    public function setPassedByReference($bool)
    {
        $this->passedByReference = (bool) $bool;
        return $this;
    }

Usage Example

 public function testByReference()
 {
     $param = new PhpParameter();
     $this->assertFalse($param->isPassedByReference());
     $param->setPassedByReference(true);
     $this->assertTrue($param->isPassedByReference());
     $param->setPassedByReference(false);
     $this->assertFalse($param->isPassedByReference());
 }
All Usage Examples Of gossi\codegen\model\PhpParameter::setPassedByReference