File manager - Edit - /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/mck89/peast/lib/Peast/Syntax/Node/SwitchStatement.php
Back
<?php /** * This file is part of the Peast package * * (c) Marco Marchiò <marco.mm89@gmail.com> * * For the full copyright and license information refer to the LICENSE file * distributed with this source code */ namespace Peast\Syntax\Node; /** * A node that represents a switch statement. * For example: switch (test) {} * * @author Marco Marchiò <marco.mm89@gmail.com> */ class SwitchStatement extends Node implements Statement { /** * Map of node properties * * @var array */ protected $propertiesMap = array( "discriminant" => true, "cases" => true ); /** * Discriminant expression * * @var Expression */ protected $discriminant; /** * Cases array * * @var SwitchCase[] */ protected $cases = array(); /** * Returns the discriminant expression * * @return Expression */ public function getDiscriminant() { return $this->discriminant; } /** * Sets the discriminant expression * * @param Expression $discriminant Discriminant expression * * @return $this */ public function setDiscriminant(Expression $discriminant) { $this->discriminant = $discriminant; return $this; } /** * Returns the cases array * * @return SwitchCase[] */ public function getCases() { return $this->cases; } /** * Sets the cases array * * @param SwitchCase[] $cases Cases array * * @return $this */ public function setCases($cases) { $this->assertArrayOf($cases, "SwitchCase"); $this->cases = $cases; return $this; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings