States
Last updated
Was this helpful?
Last updated
Was this helpful?
If you understood the concept of , then States should be simple to grasp. This namespace contains interfaces that describe objects which can be in a certain state. The following interfaces are declared
-- describes an objects that implements an is_active
method
-- describes an object that implements an is_disabled
method
The key difference to actions is that state methods return a plain boolean value.
Just like with actions, states also come with a set of local and extension traits. There are no integration traits however. The only difference is that the local and extension methods return a boolean instead of a nullable exception. You can look over the traits for the active state and the traits for the disabled state .