aboutsummaryrefslogtreecommitdiff
path: root/NXP/Classes/Func.php
diff options
context:
space:
mode:
Diffstat (limited to 'NXP/Classes/Func.php')
-rw-r--r--NXP/Classes/Func.php41
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