REBELinBLUE\Deployer\Repositories\EloquentDeploymentRepository::getStatus PHP Method

getStatus() private method

private getStatus ( integer $status ) : Illuminate\Database\Eloquent\Collection
$status integer
return Illuminate\Database\Eloquent\Collection
    private function getStatus($status)
    {
        $raw_sql = 'project_id IN (SELECT id FROM projects WHERE deleted_at IS NULL)';
        return $this->model->whereRaw($raw_sql)->where('status', $status)->whereNotNull('started_at')->orderBy('started_at', 'DESC')->get();
    }