diff options
author | Alexander 'NeonXP' Kiryukhin <frei@neonxp.info> | 2013-03-17 07:26:33 +0400 |
---|---|---|
committer | Alexander 'NeonXP' Kiryukhin <frei@neonxp.info> | 2013-03-17 07:26:33 +0400 |
commit | 0779c4f3e2389a3c390073ff7f3bdce33ac799f3 (patch) | |
tree | 3aa6ca3617f0cf7e005d6ae98bdb2eeb6a41a33c /NXP/Classes/Func.php | |
parent | 2df6097e8056af3a3a582169c51ea07dd935fd46 (diff) |
+ Added token parser
+ Added functions support
~ Rewrited most of code
Diffstat (limited to 'NXP/Classes/Func.php')
-rw-r--r-- | NXP/Classes/Func.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/NXP/Classes/Func.php b/NXP/Classes/Func.php new file mode 100644 index 0000000..b3e5b93 --- /dev/null +++ b/NXP/Classes/Func.php @@ -0,0 +1,41 @@ +<?php +/** + * Author: Alexander "NeonXP" Kiryukhin + * Date: 17.03.13 + * Time: 4:30 + */ + +namespace NXP\Classes; + + +class Func { + /** + * @var string + */ + private $name; + + /** + * @var callable + */ + private $callback; + + /** + * @param $name + * @param $callback + */ + function __construct($name, $callback) + { + $this->name = $name; + $this->callback = $callback; + } + + public function getName() + { + return $this->name; + } + + public function getCallback() + { + return $this->callback; + } +}
\ No newline at end of file |