aboutsummaryrefslogtreecommitdiffstats
path: root/Model/Behavior.php
diff options
context:
space:
mode:
Diffstat (limited to 'Model/Behavior.php')
-rw-r--r--Model/Behavior.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/Model/Behavior.php b/Model/Behavior.php
index c31da7f..852d1a7 100644
--- a/Model/Behavior.php
+++ b/Model/Behavior.php
@@ -66,7 +66,12 @@ from('Hoa')
/**
* \Hoa\Praspel\Model\Invariant
*/
--> import('Praspel.Model.Invariant');
+-> import('Praspel.Model.Invariant')
+
+/**
+ * \Hoa\Praspel\Model\Collection
+ */
+-> import('Praspel.Model.Collection');
}
@@ -141,7 +146,15 @@ class Behavior extends Clause {
break;
case 'behavior':
- $handle = new self($this);
+ $handle = new Collection(
+ new self($this),
+ function ( self $clause, $identifier ) {
+
+ $clause->setIdentifier($identifier);
+
+ return;
+ }
+ );
break;
default:
@@ -169,7 +182,6 @@ class Behavior extends Clause {
* Set identifier.
*
* @access public
- * @param string $identifier Identifier.
* @return string
*/
public function setIdentifier ( $identifier ) {