Debian Codegraph @

vendor/mck89/peast/lib/Peast/Syntax/Node/AwaitExpression.php

raw
1 <?php
2 /**
3 * This file is part of the Peast package
4 *
5 * (c) Marco Marchiò <[email protected]>
6 *
7 * For the full copyright and license information refer to the LICENSE file
8 * distributed with this source code
9 */
10 namespace Peast\Syntax\Node;
11
12 /**
13 * A node that represents an await expression.
14 *
15 * @author Marco Marchiò <[email protected]>
16 */
17 class AwaitExpression extends Node implements Expression
18 {
19 /**
20 * Map of node properties
21 *
22 * @var array
23 */
24 protected $propertiesMap = array(
25 "argument" => true
26 );
27
28 /**
29 * Expression's argument
30 *
31 * @var Expression
32 */
33 protected $argument;
34
35 /**
36 * Returns the expression's argument
37 *
38 * @return Expression
39 */
40 public function getArgument()
41 {
42 return $this->argument;
43 }
44
45 /**
46 * Sets the expression's argument
47 *
48 * @param Expression $argument Argument
49 *
50 * @return $this
51 */
52 public function setArgument(Expression $argument)
53 {
54 $this->argument = $argument;
55 return $this;
56 }
57 }