original_string: public function getMultipleByName(array $permissions): array
      {
          if ($this->permissions === null) {
              $this->getAll();
          }
  
          $results = [];
  
          foreach ($permissions as $permission) {
              if (isset($this->names[$permission])) {
                  $results[] = $this->permissions[$this->names[$permission]];
              }
          }
  
          return $results;
      }
code: public function getMultipleByName(array $permissions): array
      {
          if ($this->permissions === null) {
              $this->getAll();
          }
  
          $results = [];
  
          foreach ($permissions as $permission) {
              if (isset($this->names[$permission])) {
                  $results[] = $this->permissions[$this->names[$permission]];
              }
          }
  
          return $results;
      }
code_tokens: public function getMultipleByName ( array $ permissions ) : array { if ( $ this -> permissions === null ) { $ this -> getAll ( ) ; } $ results = [ ] ; foreach ( $ permissions as $ permission ) { if ( isset ( $ this -> names [ $ permission ] ) ) { $ results [ ] = $ this -> permissions [ $ this -> names [ $ permission ] ] ; } } return $ results ; }
docstring: Get a permissions by their name
  
  @param string[] $permissions
  @return IPermission[]
docstring_tokens: Get a permissions by their name