'Ensino', self::PESQUISA => 'Pesquisa', self::EXTENSAO => 'Extensão', self::GESTAO => 'Gestão', ]; return $value !== null? $values[$value] : $values; } /** * References table planejamentos * * @var string */ protected $table = "planejamentos"; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['cod_dimensao', 'dimensao', 'descricao', 'ch_semanal, ch_maxima']; /** * @return string */ public function dimensaoAsText() { return $this->listDimensao($this->dimensao); } public static function find() { return new PlanejamentoQuery(get_called_class()); } }