Skip to content

Commit ab037ff

Browse files
committed
Mask boot method added
1 parent e02ad21 commit ab037ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/IMAP/Support/Masks/Mask.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ public function __construct($parent) {
4141
if(method_exists($this->parent, 'getAttributes')){
4242
$this->attributes = array_merge($this->attributes, $this->parent->getAttributes());
4343
}
44+
45+
$this->boot();
4446
}
4547

48+
/**
49+
* Boot method made to be used by any custom mask
50+
*/
51+
protected function boot(){}
4652

4753
/**
4854
* Call dynamic attribute setter and getter methods and inherit the parent calls

0 commit comments

Comments
 (0)