Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
Update Ruler.php
Browse files Browse the repository at this point in the history
add in alias because interprete is the wrong English spelling
  • Loading branch information
simkimsia committed Jan 16, 2015
1 parent 8c100b5 commit 29f66fe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Ruler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 29f66fe

Please sign in to comment.