From 6e3257fb93f0cc44ce6ff914128563e102a46384 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Thu, 18 Jun 2015 09:06:30 +0200 Subject: [PATCH] Make RoundingMode non-instantiable --- src/RoundingMode.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/RoundingMode.php b/src/RoundingMode.php index f1300b8..a78667d 100644 --- a/src/RoundingMode.php +++ b/src/RoundingMode.php @@ -13,6 +13,13 @@ namespace Brick\Math; */ final class RoundingMode { + /** + * Private constructor. This class is not instantiable. + */ + private function __construct() + { + } + /** * Asserts that the requested operation has an exact result, hence no rounding is necessary. *