protected function isSameDimensions(Item $itemA, Item $itemB): bool
    {
        $itemADimensions = [$itemA->getWidth(), $itemA->getLength(), $itemA->getDepth()];
        $itemBDimensions = [$itemB->getWidth(), $itemB->getLength(), $itemB->getDepth()];
        sort($itemADimensions);
        sort($itemBDimensions);

        return $itemADimensions === $itemBDimensions;
    }
protected function isSameDimensions(Item $itemA, Item $itemB): bool
    {
        $itemADimensions = [$itemA->getWidth(), $itemA->getLength(), $itemA->getDepth()];
        $itemBDimensions = [$itemB->getWidth(), $itemB->getLength(), $itemB->getDepth()];
        sort($itemADimensions);
        sort($itemBDimensions);

        return $itemADimensions === $itemBDimensions;
    }
protected function isSameDimensions ( Item $ itemA , Item $ itemB ) : bool { $ itemADimensions = [ $ itemA -> getWidth ( ) , $ itemA -> getLength ( ) , $ itemA -> getDepth ( ) ] ; $ itemBDimensions = [ $ itemB -> getWidth ( ) , $ itemB -> getLength ( ) , $ itemB -> getDepth ( ) ] ; sort ( $ itemADimensions ) ; sort ( $ itemBDimensions ) ; return $ itemADimensions === $ itemBDimensions ; }
Compare two items to see if they have same dimensions.

@param Item $itemA
@param Item $itemB

@return bool
Compare two items to see if they have same dimensions .