protected function getCurrentPackedDepth(): int
    {
        $depth = 0;
        foreach ($this->layers as $layer) {
            $depth += $layer->getDepth();
        }

        return $depth;
    }
protected function getCurrentPackedDepth(): int
    {
        $depth = 0;
        foreach ($this->layers as $layer) {
            $depth += $layer->getDepth();
        }

        return $depth;
    }
protected function getCurrentPackedDepth ( ) : int { $ depth = 0 ; foreach ( $ this -> layers as $ layer ) { $ depth += $ layer -> getDepth ( ) ; } return $ depth ; }
Return the current packed depth.

@return int
Return the current packed depth .