PHP code example of mario-legenda / code-workflow

1. Go to this page and download the library: Download mario-legenda/code-workflow 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/ */

    

mario-legenda / code-workflow example snippets


 ->ifMethod('getCompanyName')->succedes()->thenRun(function(){
       return $context->getObjectStorage()->retreiveUnit($company)->retreive('getCompanyName')->getValue();
  })