Skip to content

Commit

Permalink
Updating readme with a ModelHooks set/unset Method example
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Porter committed Apr 1, 2021
1 parent 16a4297 commit 9fe65e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}
```
Expand Down

0 comments on commit 9fe65e7

Please sign in to comment.