original_string: public function get_from_id(int $id) {
          $records = $this->get_from_ids([$id]);
          return count($records) ? array_shift($records) : null;
      }
code: public function get_from_id(int $id) {
          $records = $this->get_from_ids([$id]);
          return count($records) ? array_shift($records) : null;
      }
code_tokens: public function get_from_id ( int $ id ) { $ records = $ this -> get_from_ids ( [ $ id ] ) ; return count ( $ records ) ? array_shift ( $ records ) : null ; }
docstring: Get the entity for the given id.
  
  @param int $id Identifier for the entity
  @return object|null
docstring_tokens: Get the entity for the given id .