Evercode1\ViewMaker\CrudTokens::__construct PHP Method

__construct() public method

public __construct ( array $tokens )
$tokens array
    public function __construct(array $tokens)
    {
        $this->model = $tokens['model'];
        if (isset($tokens['slug'])) {
            $this->slug = $tokens['slug'];
        }
        if (isset($tokens['parent'])) {
            $this->parent = $tokens['parent'];
            $this->child = $tokens['child'];
        }
    }