You are here

public function ArgumentNode::setDefault in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php \Prophecy\Doubler\Generator\Node\ArgumentNode::setDefault()

File

vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php, line 55

Class

ArgumentNode
Argument node.

Namespace

Prophecy\Doubler\Generator\Node

Code

public function setDefault($default = null) {
  $this->optional = true;
  $this->default = $default;
}