From 29f66fea3b5b9e52e876c9330883e2e35cbb8228 Mon Sep 17 00:00:00 2001 From: simkimsia Date: Fri, 16 Jan 2015 22:22:18 +0800 Subject: [PATCH] Update Ruler.php add in alias because interprete is the wrong English spelling --- Ruler.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Ruler.php b/Ruler.php index 2418194..e331f5e 100644 --- a/Ruler.php +++ b/Ruler.php @@ -103,6 +103,19 @@ public function assert ( $rule, Context $context = null ) { return $this->getAsserter($context)->visit($rule); } + + /** + * Alias for interprete. Because interpret is the correct English spelling + * + * @access public + * @param string $rule Rule. + * @return \Hoa\Ruler\Model + * @throw \Hoa\Ruler\Exception + */ + public static function interpret ( $rule ) { + + return static::interprete($rule); + } /** * Short interpreter.