original_string: public function implementedEvents()
      {
          $eventMap = [
              'Model.beforeMarshal' => 'beforeMarshal',
              'Model.beforeFind' => 'beforeFind',
              'Model.beforeSave' => 'beforeSave',
              'Model.afterSave' => 'afterSave',
              'Model.afterSaveCommit' => 'afterSaveCommit',
              'Model.beforeDelete' => 'beforeDelete',
              'Model.afterDelete' => 'afterDelete',
              'Model.afterDeleteCommit' => 'afterDeleteCommit',
              'Model.buildValidator' => 'buildValidator',
              'Model.buildRules' => 'buildRules',
              'Model.beforeRules' => 'beforeRules',
              'Model.afterRules' => 'afterRules',
          ];
          $config = $this->getConfig();
          $priority = isset($config['priority']) ? $config['priority'] : null;
          $events = [];
  
          foreach ($eventMap as $event => $method) {
              if (!method_exists($this, $method)) {
                  continue;
              }
              if ($priority === null) {
                  $events[$event] = $method;
              } else {
                  $events[$event] = [
                      'callable' => $method,
                      'priority' => $priority
                  ];
              }
          }
  
          return $events;
      }
code: public function implementedEvents()
      {
          $eventMap = [
              'Model.beforeMarshal' => 'beforeMarshal',
              'Model.beforeFind' => 'beforeFind',
              'Model.beforeSave' => 'beforeSave',
              'Model.afterSave' => 'afterSave',
              'Model.afterSaveCommit' => 'afterSaveCommit',
              'Model.beforeDelete' => 'beforeDelete',
              'Model.afterDelete' => 'afterDelete',
              'Model.afterDeleteCommit' => 'afterDeleteCommit',
              'Model.buildValidator' => 'buildValidator',
              'Model.buildRules' => 'buildRules',
              'Model.beforeRules' => 'beforeRules',
              'Model.afterRules' => 'afterRules',
          ];
          $config = $this->getConfig();
          $priority = isset($config['priority']) ? $config['priority'] : null;
          $events = [];
  
          foreach ($eventMap as $event => $method) {
              if (!method_exists($this, $method)) {
                  continue;
              }
              if ($priority === null) {
                  $events[$event] = $method;
              } else {
                  $events[$event] = [
                      'callable' => $method,
                      'priority' => $priority
                  ];
              }
          }
  
          return $events;
      }
code_tokens: public function implementedEvents ( ) { $ eventMap = [ 'Model.beforeMarshal' => 'beforeMarshal' , 'Model.beforeFind' => 'beforeFind' , 'Model.beforeSave' => 'beforeSave' , 'Model.afterSave' => 'afterSave' , 'Model.afterSaveCommit' => 'afterSaveCommit' , 'Model.beforeDelete' => 'beforeDelete' , 'Model.afterDelete' => 'afterDelete' , 'Model.afterDeleteCommit' => 'afterDeleteCommit' , 'Model.buildValidator' => 'buildValidator' , 'Model.buildRules' => 'buildRules' , 'Model.beforeRules' => 'beforeRules' , 'Model.afterRules' => 'afterRules' , ] ; $ config = $ this -> getConfig ( ) ; $ priority = isset ( $ config [ 'priority' ] ) ? $ config [ 'priority' ] : null ; $ events = [ ] ; foreach ( $ eventMap as $ event => $ method ) { if ( ! method_exists ( $ this , $ method ) ) { continue ; } if ( $ priority === null ) { $ events [ $ event ] = $ method ; } else { $ events [ $ event ] = [ 'callable' => $ method , 'priority' => $ priority ] ; } } return $ events ; }
docstring: Gets the Model callbacks this behavior is interested in.
  
  By defining one of the callback methods a behavior is assumed
  to be interested in the related event.
  
  Override this method if you need to add non-conventional event listeners.
  Or if you want your behavior to listen to non-standard events.
  
  @return array
docstring_tokens: Gets the Model callbacks this behavior is interested in .