src/Room.php
/**
     * Create a Room from a Facility Code and Room Number.
     *
     * @param string $roomCode
     * @return null|Room
     */
Create a Room from a Facility Code and Room Number.
@param string $roomCode
@return null|Room
Create a Room from a Facility Code and Room Number . @param string $roomCode @return null|Room
public static function fromFacilityCodeAndRoomNumber($facilityCode, $roomNumber)
    {
        $result = static::search("facility_code=$facilityCode&room_number=$roomNumber");
        if (count($result) != 1) {
            throw new \Exception("Not exactly one room found for $facilityCode $roomNumber");
        }
        return $result[0];
    }
public static function fromFacilityCodeAndRoomNumber ( $ facilityCode , $ roomNumber ) { $ result = static :: search ( " facility_code= $ facilityCode &room_number= $ roomNumber " ) ; if ( count ( $ result ) != 1 ) { throw new \ Exception ( " Not exactly one room found for  $ facilityCode $ roomNumber " ) ; } return $ result [ 0 ] ; }
Create a Room from a Facility Code and Room Number.
Create a Room from a Facility Code and Room Number .