aboutsummaryrefslogtreecommitdiffstats
path: root/Model/Is.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-07 17:50:08 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-07 17:50:08 +0200
commitb94b04335de285a248b3e216ffbe357b97fc1ed7 (patch)
tree1b5a389a7864d0aa166706ee8457766e7c48ebae /Model/Is.php
parentaf0ab4b0397a2745d8c143d4dce3826c1e6119d9 (diff)
downloadPraspel-b94b04335de285a248b3e216ffbe357b97fc1ed7.zip
Praspel-b94b04335de285a248b3e216ffbe357b97fc1ed7.tar.gz
Praspel-b94b04335de285a248b3e216ffbe357b97fc1ed7.tar.bz2
Add the getPropertyName() method.
Diffstat (limited to 'Model/Is.php')
-rw-r--r--Model/Is.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/Model/Is.php b/Model/Is.php
index af54c96..e539942 100644
--- a/Model/Is.php
+++ b/Model/Is.php
@@ -151,6 +151,22 @@ class Is extends Clause {
}
/**
+ * Get property name.
+ *
+ * @access public
+ * @return string
+ */
+ public function getPropertyName ( ) {
+
+ $out = array();
+
+ if(true === $this->is(static::PURE))
+ $out[] = 'pure';
+
+ return implode(', ', $out);
+ }
+
+ /**
* Get property value from a string.
*
* @access public