Files
apimacro/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php

41 lines
731 B
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php declare(strict_types=1);
namespace PhpParser\Node;
use PhpParser\Node;
2024-05-17 12:24:19 +00:00
interface FunctionLike extends Node {
2024-05-07 12:17:25 +02:00
/**
* Whether to return by reference
*/
2024-05-17 12:24:19 +00:00
public function returnsByRef(): bool;
2024-05-07 12:17:25 +02:00
/**
* List of parameters
*
* @return Param[]
*/
2024-05-17 12:24:19 +00:00
public function getParams(): array;
2024-05-07 12:17:25 +02:00
/**
* Get the declared return type or null
*
* @return null|Identifier|Name|ComplexType
*/
public function getReturnType();
/**
* The function body
*
* @return Stmt[]|null
*/
2024-05-17 12:24:19 +00:00
public function getStmts(): ?array;
2024-05-07 12:17:25 +02:00
/**
* Get PHP attribute groups.
*
* @return AttributeGroup[]
*/
2024-05-17 12:24:19 +00:00
public function getAttrGroups(): array;
2024-05-07 12:17:25 +02:00
}