original_string: public function getByName(string $name): ?IPermission
      {
          if ($this->permissions === null) {
              $this->getAll();
          }
  
          if (!isset($this->names[$name])) {
              return null;
          }
  
          return $this->permissions[$this->names[$name]];
      }
code: public function getByName(string $name): ?IPermission
      {
          if ($this->permissions === null) {
              $this->getAll();
          }
  
          if (!isset($this->names[$name])) {
              return null;
          }
  
          return $this->permissions[$this->names[$name]];
      }
code_tokens: public function getByName ( string $ name ) : ? IPermission { if ( $ this -> permissions === null ) { $ this -> getAll ( ) ; } if ( ! isset ( $ this -> names [ $ name ] ) ) { return null ; } return $ this -> permissions [ $ this -> names [ $ name ] ] ; }
docstring: Get permission by its name
  
  @param string $name
  @return null|IPermission
docstring_tokens: Get permission by its name