From 35b852d97c9320bb6d468f353e6115895e4db86e Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 6 Aug 2018 15:14:42 +0200 Subject: [PATCH] WIP: Introduce Attributes::setCallback() --- src/Attributes.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 *