diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-06-07 17:50:08 +0200 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-06-07 17:50:08 +0200 |
commit | b94b04335de285a248b3e216ffbe357b97fc1ed7 (patch) | |
tree | 1b5a389a7864d0aa166706ee8457766e7c48ebae /Model/Is.php | |
parent | af0ab4b0397a2745d8c143d4dce3826c1e6119d9 (diff) | |
download | Praspel-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.php | 16 |
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 |