You are here

class ArgumentNode 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

Argument node.

@author Konstantin Kudryashov <ever.zet@gmail.com>

Hierarchy

Expanded class hierarchy of ArgumentNode

1 file declares its use of ArgumentNode
ProphecySubjectPatch.php in vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php

File

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

Namespace

Prophecy\Doubler\Generator\Node
View source
class ArgumentNode {
  private $name;
  private $typeHint;
  private $default;
  private $optional = false;
  private $byReference = false;

  /**
   * @param string $name
   */
  public function __construct($name) {
    $this->name = $name;
  }
  public function getName() {
    return $this->name;
  }
  public function getTypeHint() {
    return $this->typeHint;
  }
  public function setTypeHint($typeHint = null) {
    $this->typeHint = $typeHint;
  }
  public function getDefault() {
    return $this->default;
  }
  public function setDefault($default = null) {
    $this->optional = true;
    $this->default = $default;
  }
  public function isOptional() {
    return $this->optional;
  }
  public function setAsPassedByReference($byReference = true) {
    $this->byReference = $byReference;
  }
  public function isPassedByReference() {
    return $this->byReference;
  }

}

Members