import { UMB_HAS_CHILDREN_ENTITY_CONTEXT } from './has-children.context-token.js';
import { UmbContextBase } from '../../../../../libs/class-api/index.js';
import { UmbBooleanState } from '../../../../../libs/observable-api/index.js';
export class UmbHasChildrenEntityContext extends UmbContextBase {
    #hasChildren;
    constructor(host) {
        super(host, UMB_HAS_CHILDREN_ENTITY_CONTEXT);
        this.#hasChildren = new UmbBooleanState(undefined);
        this.hasChildren = this.#hasChildren.asObservable();
    }
    /**
     * Gets the hasChildren state
     * @returns {boolean} - The hasChildren state
     * @memberof UmbHasChildrenEntityContext
     */
    getHasChildren() {
        return this.#hasChildren.getValue();
    }
    /**
     * Sets the hasChildren state
     * @param {boolean} hasChildren - The hasChildren state
     * @memberof UmbHasChildrenEntityContext
     */
    setHasChildren(hasChildren) {
        this.#hasChildren.setValue(hasChildren);
    }
}
