original_string: private function buildStates(): array
      {
          $states = [];
          foreach ($this->getOffsetFromArray($this->schema, 'states', []) as $state) {
              $states[] = new State(
                  $this->getOffsetFromArray($state, 'name'),
                  $this->buildEvents($state),
                  $this->getAdditionalFromArray($state, ['events', 'name'])
              );
          }
  
          return $states;
      }
code: private function buildStates(): array
      {
          $states = [];
          foreach ($this->getOffsetFromArray($this->schema, 'states', []) as $state) {
              $states[] = new State(
                  $this->getOffsetFromArray($state, 'name'),
                  $this->buildEvents($state),
                  $this->getAdditionalFromArray($state, ['events', 'name'])
              );
          }
  
          return $states;
      }
code_tokens: private function buildStates ( ) : array { $ states = [ ] ; foreach ( $ this -> getOffsetFromArray ( $ this -> schema , 'states' , [ ] ) as $ state ) { $ states [ ] = new State ( $ this -> getOffsetFromArray ( $ state , 'name' ) , $ this -> buildEvents ( $ state ) , $ this -> getAdditionalFromArray ( $ state , [ 'events' , 'name' ] ) ) ; } return $ states ; }
docstring: Build states for process
  
  @return array
docstring_tokens: Build states for process