PHP code example of dor-denis / validated-statemachine
1. Go to this page and download the library: Download dor-denis/validated-statemachine library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dor-denis / validated-statemachine example snippets
class StateMachineModel
{
use StateMachine;
public $stateId = 100;
protected function getStateProperty()
{
return 'stateId';
}
protected function getSpecification()
{
return new ExampleStateMachineSpecification();
}
}