src/Changes.php
public function add(string $path, EntityInterface $entity): bool
    {
        $result = false;

        if (strlen($path)) {
            $name = null;
            $subtree = $this->subtree($path, $name, true);
            $subtree->ownData[$name] = $entity;

            $result = true;
        }

        return $result;
    }
public function add(string $path, EntityInterface $entity): bool
    {
        $result = false;

        if (strlen($path)) {
            $name = null;
            $subtree = $this->subtree($path, $name, true);
            $subtree->ownData[$name] = $entity;

            $result = true;
        }

        return $result;
    }
public function add ( string $ path , EntityInterface $ entity ) : bool { $ result = false ; if ( strlen ( $ path ) ) { $ name = null ; $ subtree = $ this -> subtree ( $ path , $ name , true ) ; $ subtree -> ownData [ $ name ] = $ entity ; $ result = true ; } return $ result ; }
Add stream entity to array.
Add stream entity to array .