PHP Classes

File: src/eMacros/Runtime/Value/ValueReturn.php

Recommend this page to a friend!
  Classes of Emmanuel Antico   eMacros   src/eMacros/Runtime/Value/ValueReturn.php   Download  
File: src/eMacros/Runtime/Value/ValueReturn.php
Role: Class source
Content type: text/plain
Description: Class source
Class: eMacros
PHP LISP language interpreter
Author: By
Last change:
Date: 10 years ago
Size: 430 bytes
 

Contents

Class file image Download
<?php
namespace eMacros\Runtime\Value;

use
eMacros\Runtime\GenericFunction;

class
ValueReturn extends GenericFunction {
   
/**
     * Returns a symbol value (lookup operator)
     * Usage: (<- _var)
     * Return: symbol associated value
     * (non-PHPdoc)
     * @see \eMacros\Runtime\GenericFunction::execute()
     */
   
public function execute(array $arguments) {
        if (empty(
$arguments)) {
            return
null;
        }
       
        return
$arguments[0];
    }
}
?>