src/BrowshotAPI.php
private function getScreenshotStatus($status): int
    {
        switch (mb_strtoupper($status)) {
            case 'IN_QUEUE':
                return ScreenshotStatus::IN_QUEUE;
            case 'IN_PROCESS':
                return ScreenshotStatus::IN_PROCESS;
            case 'FINISHED':
                return ScreenshotStatus::FINISHED;
            case 'ERROR':
                return ScreenshotStatus::ERROR;
        }

        return ScreenshotStatus::UNKNOWN;
    }
private function getScreenshotStatus($status): int
    {
        switch (mb_strtoupper($status)) {
            case 'IN_QUEUE':
                return ScreenshotStatus::IN_QUEUE;
            case 'IN_PROCESS':
                return ScreenshotStatus::IN_PROCESS;
            case 'FINISHED':
                return ScreenshotStatus::FINISHED;
            case 'ERROR':
                return ScreenshotStatus::ERROR;
        }

        return ScreenshotStatus::UNKNOWN;
    }
private function getScreenshotStatus ( $ status ) : int { switch ( mb_strtoupper ( $ status ) ) { case 'IN_QUEUE' : return ScreenshotStatus :: IN_QUEUE ; case 'IN_PROCESS' : return ScreenshotStatus :: IN_PROCESS ; case 'FINISHED' : return ScreenshotStatus :: FINISHED ; case 'ERROR' : return ScreenshotStatus :: ERROR ; } return ScreenshotStatus :: UNKNOWN ; }
Get screenshot status by its name

@param $status
@return int
Get screenshot status by its name