original_string: public function notifyObjects($method, array $args = []) {
          if ($this->_classes) {
              foreach ($this->_classes as $options) {
                  if (!$options['callback'] || in_array($options['alias'], $this->_restricted)) {
                      continue;
                  }
  
                  $object = $this->getObject($options['alias']);
  
                  if ($object && method_exists($object, $method)) {
                      call_user_func_array([$object, $method], $args);
                  }
              }
          }
  
          return $this;
      }
code: public function notifyObjects($method, array $args = []) {
          if ($this->_classes) {
              foreach ($this->_classes as $options) {
                  if (!$options['callback'] || in_array($options['alias'], $this->_restricted)) {
                      continue;
                  }
  
                  $object = $this->getObject($options['alias']);
  
                  if ($object && method_exists($object, $method)) {
                      call_user_func_array([$object, $method], $args);
                  }
              }
          }
  
          return $this;
      }
code_tokens: public function notifyObjects ( $ method , array $ args = [ ] ) { if ( $ this -> _classes ) { foreach ( $ this -> _classes as $ options ) { if ( ! $ options [ 'callback' ] || in_array ( $ options [ 'alias' ] , $ this -> _restricted ) ) { continue ; } $ object = $ this -> getObject ( $ options [ 'alias' ] ) ; if ( $ object && method_exists ( $ object , $ method ) ) { call_user_func_array ( [ $ object , $ method ] , $ args ) ; } } } return $ this ; }
docstring: Cycle through all loaded objects and trigger the defined hook method.
  
  @param string $method
  @param array $args
  @return $this
docstring_tokens: Cycle through all loaded objects and trigger the defined hook method .