diff --git a/src/Attributes.php b/src/Attributes.php index 5d782bbc..b7d69c33 100644 --- a/src/Attributes.php +++ b/src/Attributes.php @@ -336,6 +336,13 @@ public function setPrefix($prefix) return $this; } + public function setCallback($name, $getter, $setter = null) + { + $this->registerAttributeCallback($name, $getter, $setter); + + return $this; + } + /** * Register callback for an attribute *