PHP Classes

File: src/eMacros/Runtime/Argument/ArgumentCount.php

Recommend this page to a friend!
  Classes of Emmanuel Antico   eMacros   src/eMacros/Runtime/Argument/ArgumentCount.php   Download  
File: src/eMacros/Runtime/Argument/ArgumentCount.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: 405 bytes
 

Contents

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

use
eMacros\Applicable;
use
eMacros\Scope;
use
eMacros\GenericList;

class
ArgumentCount implements Applicable {
   
/**
     * Returns the number of available arguments
     * Usage: (%#)
     * Returns: int
     * (non-PHPdoc)
     * @see \eMacros\Applicable::apply()
     */
   
public function apply(Scope $scope, GenericList $arguments) {
        return
count($scope->arguments);
    }
}
?>