protected function checkConstraints(
        Item $itemToPack
    ): bool {
        return $this->checkNonDimensionalConstraints($itemToPack) &&
               $this->checkDimensionalConstraints($itemToPack);
    }
protected function checkConstraints(
        Item $itemToPack
    ): bool {
        return $this->checkNonDimensionalConstraints($itemToPack) &&
               $this->checkDimensionalConstraints($itemToPack);
    }
protected function checkConstraints ( Item $ itemToPack ) : bool { return $ this -> checkNonDimensionalConstraints ( $ itemToPack ) && $ this -> checkDimensionalConstraints ( $ itemToPack ) ; }
Check item generally fits into box.

@param Item $itemToPack

@return bool
Check item generally fits into box .