original_string: public function get_slot_by_number($slotnumber) {
          foreach ($this->slots as $slot) {
              if ($slot->slot == $slotnumber) {
                  return $slot;
              }
          }
  
          throw new \coding_exception('The \'slotnumber\' could not be found.');
      }
code: public function get_slot_by_number($slotnumber) {
          foreach ($this->slots as $slot) {
              if ($slot->slot == $slotnumber) {
                  return $slot;
              }
          }
  
          throw new \coding_exception('The \'slotnumber\' could not be found.');
      }
code_tokens: public function get_slot_by_number ( $ slotnumber ) { foreach ( $ this -> slots as $ slot ) { if ( $ slot -> slot == $ slotnumber ) { return $ slot ; } } throw new \ coding_exception ( 'The \'slotnumber\' could not be found.' ) ; }
docstring: Get a slot by it's slot number. Throws an exception if it is missing.
  
  @param int $slotnumber The slot number
  @return \stdClass
  @throws \coding_exception
docstring_tokens: Get a slot by it s slot number . Throws an exception if it is missing .