Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ArgumentNode.php

function ArgumentNode::setDefault

Parameters

mixed $default:

Return value

void

File

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

Class

ArgumentNode
Argument node.

Namespace

Prophecy\Doubler\Generator\Node

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal