File: D:/HostingSpaces/stafa/werkenbijstafa.nl/app/Komma/Kms/Core/Tree/NestedSets/Nodes/TreeModel.php
<?php
namespace App\Komma\Kms\Core\Tree\NestedSets\Nodes;
use Illuminate\Database\Eloquent\Model;
/**
* Class TreeModel
*
* Use this model if your model is in a a tree hierarchy structure
*
* @package App\Komma\Kms\Core\Tree\NestedSets\Nodes
*/
abstract class TreeModel extends Model implements TreeModelInterface
{
use TreeModelLogicTrait;
/**
* Return a number, representing some color that represents
* the status if the TreeModel. Used at the frontend
*
* @return mixed
*/
public function getColorStatusNumber(): int
{
return ($this->active ?: 0);
}
}