src/Changes.php
public function own($path = ''): array
    {
        if ($path) {
            $parts = $this->split($path);
            $name = array_shift($parts);

            $own = [];
            if (isset($this->subTrees[$name])) {
                $subtree = $this->subTrees[$name];
                $this->appendChildren(
                    $own, $name, $subtree->own($parts)
                );
            }
        } else {
            $own = $this->ownData;
        }

        return $own;
    }
public function own($path = ''): array
    {
        if ($path) {
            $parts = $this->split($path);
            $name = array_shift($parts);

            $own = [];
            if (isset($this->subTrees[$name])) {
                $subtree = $this->subTrees[$name];
                $this->appendChildren(
                    $own, $name, $subtree->own($parts)
                );
            }
        } else {
            $own = $this->ownData;
        }

        return $own;
    }
public function own ( $ path = '' ) : array { if ( $ path ) { $ parts = $ this -> split ( $ path ) ; $ name = array_shift ( $ parts ) ; $ own = [ ] ; if ( isset ( $ this -> subTrees [ $ name ] ) ) { $ subtree = $ this -> subTrees [ $ name ] ; $ this -> appendChildren ( $ own , $ name , $ subtree -> own ( $ parts ) ) ; } } else { $ own = $ this -> ownData ; } return $ own ; }
Get subtree's own changes.

@param array|string $path

@return EntityInterface[]
Get subtree s own changes .