<?php

namespace modules\selfserve\helpers;

enum selfserve_lane_log_action
{

    case START_WASH; // start a wash cycle
    case STOP_WASH; // stop a wash cycle
    case SET_MAINTENANCE; // set lane to maintenance mode
    case CLEAR_MAINTENANCE; // clear maintenance mode
    case SET_FAULT; // set lane to fault state
    case CLEAR_FAULT; // clear fault state
    case OPEN_PORT; // open a lane port
    case CLOSE_PORT; // close a lane port
    case RESERVE_LANE; // reserve the lane
    case RELEASE_LANE; // release the lane from reservation
    case CLOSE_LANE; // close the lane
    case OPEN_LANE; // open the lane

    public function equals(selfserve_lane_log_action $status): bool
    {
        return $this === $status;
    }
}
