protected function getStableOrientationsInEmptyBox(Item $item): array
    {
        $orientationsInEmptyBox = $this->getPossibleOrientationsInEmptyBox($item);

        return array_filter(
            $orientationsInEmptyBox,
            function (OrientatedItem $orientation) {
                return $orientation->isStable();
            }
        );
    }
protected function getStableOrientationsInEmptyBox(Item $item): array
    {
        $orientationsInEmptyBox = $this->getPossibleOrientationsInEmptyBox($item);

        return array_filter(
            $orientationsInEmptyBox,
            function (OrientatedItem $orientation) {
                return $orientation->isStable();
            }
        );
    }
protected function getStableOrientationsInEmptyBox ( Item $ item ) : array { $ orientationsInEmptyBox = $ this -> getPossibleOrientationsInEmptyBox ( $ item ) ; return array_filter ( $ orientationsInEmptyBox , function ( OrientatedItem $ orientation ) { return $ orientation -> isStable ( ) ; } ) ; }
Return the orientations for this item if it were to be placed into the box with nothing else.

@param  Item  $item
@return array
Return the orientations for this item if it were to be placed into the box with nothing else .