protected static $listaDeStatusPorStatusAtual = [
1 => [2, 8],
2 => [3, 4],
3 => [5],
4 => [2, 8],
5 => [6, 7],
7 => [5, 8]
];
public function proximoStatusPossiveis()
{
$status_id = $this->status_amostra_id;
if (isset(static::$listaDeStatusPorStatusAtual[$status_id])) {
return static::$listaDeStatusPorStatusAtual[$status_id];
}
return [-1]; // pra matar o whereIn :\
}