From 9fe65e7ed3f5d694512fc0d0e959aa0d71658b0c Mon Sep 17 00:00:00 2001 From: Rob Porter Date: Thu, 1 Apr 2021 16:04:59 -0400 Subject: [PATCH] Updating readme with a ModelHooks set/unset Method example --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 410aed3..c227fe7 100644 --- a/README.md +++ b/README.md @@ -301,6 +301,8 @@ class MyCustomHook implements ModelHookInterface } $command->setProperty('custom', 'string', true, false, 'My custom property'); + $command->unsetMethod('method'); + $command->setMethod('method', $command->getMethodType($model, '\Some\Class'), ['$param']); } } ```