ResourceList.php
private function getStatusValue($countPending, $countCancel, $countError, $countSuccess)
    {
        $status = ResourceListStatutes::SUCCESSFULLY;
        $count = $this->count();

        if ($count > 0) {
            $status = ResourceListStatutes::MIXED;

            if ($count === $countPending) {
                $status = ResourceListStatutes::PENDING;
            } elseif ($count === $countCancel) {
                $status = ResourceListStatutes::CANCEL;
            } elseif ($count === $countError) {
                $status = ResourceListStatutes::ERROR;
            } elseif ($count === $countSuccess) {
                $status = ResourceListStatutes::SUCCESSFULLY;
            }
        }

        return $status;
    }
private function getStatusValue($countPending, $countCancel, $countError, $countSuccess)
    {
        $status = ResourceListStatutes::SUCCESSFULLY;
        $count = $this->count();

        if ($count > 0) {
            $status = ResourceListStatutes::MIXED;

            if ($count === $countPending) {
                $status = ResourceListStatutes::PENDING;
            } elseif ($count === $countCancel) {
                $status = ResourceListStatutes::CANCEL;
            } elseif ($count === $countError) {
                $status = ResourceListStatutes::ERROR;
            } elseif ($count === $countSuccess) {
                $status = ResourceListStatutes::SUCCESSFULLY;
            }
        }

        return $status;
    }
private function getStatusValue ( $ countPending , $ countCancel , $ countError , $ countSuccess ) { $ status = ResourceListStatutes :: SUCCESSFULLY ; $ count = $ this -> count ( ) ; if ( $ count > 0 ) { $ status = ResourceListStatutes :: MIXED ; if ( $ count === $ countPending ) { $ status = ResourceListStatutes :: PENDING ; } elseif ( $ count === $ countCancel ) { $ status = ResourceListStatutes :: CANCEL ; } elseif ( $ count === $ countError ) { $ status = ResourceListStatutes :: ERROR ; } elseif ( $ count === $ countSuccess ) { $ status = ResourceListStatutes :: SUCCESSFULLY ; } } return $ status ; }
Get the final status value.

@param int $countPending
@param int $countCancel
@param int $countError
@param int $countSuccess

@return string
Get the final status value .