init with kirby, vue and pagedjs interactive
This commit is contained in:
commit
dc0ae26464
968 changed files with 211706 additions and 0 deletions
33
public/kirby/src/Query/AST/GlobalFunctionNode.php
Normal file
33
public/kirby/src/Query/AST/GlobalFunctionNode.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
namespace Kirby\Query\AST;
|
||||
|
||||
use Kirby\Query\Visitors\Visitor;
|
||||
|
||||
/**
|
||||
* Represents a global function call in the AST
|
||||
*
|
||||
* @package Kirby Query
|
||||
* @author Roman Steiner <roman@toastlab.ch>,
|
||||
* Nico Hoffmann <nico@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
* @since 5.1.0
|
||||
* @unstable
|
||||
*/
|
||||
class GlobalFunctionNode extends Node
|
||||
{
|
||||
public function __construct(
|
||||
public string $name,
|
||||
public ArgumentListNode $arguments,
|
||||
) {
|
||||
}
|
||||
|
||||
public function resolve(Visitor $visitor): mixed
|
||||
{
|
||||
return $visitor->function(
|
||||
name: $this->name,
|
||||
arguments: $this->arguments->resolve($visitor)
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue