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

Commit

Permalink
s/interprete/interpret/
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Feb 2, 2015
1 parent e61fbb8 commit 1b5083f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ the possible constructions.
Now, we have two options to save the rule, for example, in a database. Either we
save the rule as a string directly, or we will save the serialization of the
rule which will avoid further interpretations. In the next example, we see how
to serialize and unserialize a rule by using the `Hoa\Ruler\Ruler::interprete`
to serialize and unserialize a rule by using the `Hoa\Ruler\Ruler::interpret`
static method:

```php
$database->save(
serialize(
Hoa\Ruler\Ruler::interprete(
Hoa\Ruler\Ruler::interpret(
'logged(user) and group in ["customer", "guest"] and points > 30'
)
)
Expand All @@ -183,7 +183,7 @@ unserialize this model. To see the PHP code needed to create such a model, we
can print the model itself (as an example). Thus:

```php
echo Hoa\Ruler\Ruler::interprete(
echo Hoa\Ruler\Ruler::interpret(
'logged(user) and group in ["customer", "guest"] and points > 30'
);

Expand Down
6 changes: 3 additions & 3 deletions Test/Unit/Documentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ public function case_new_operators ( ) {
->isFalse();
}

public function case_interprete ( ) {
public function case_interpret ( ) {

$this
->given(
$model = LUT::interprete('group in ["customer", "guest"] and points > 30')
$model = LUT::interpret('group in ["customer", "guest"] and points > 30')
)
->when($ledom = unserialize(serialize($model)))
->then
Expand Down Expand Up @@ -165,7 +165,7 @@ public function case_compile ( ) {
RESULT;

$this
->when($result = LUT::interprete(
->when($result = LUT::interpret(
'logged(user) and group in ["customer", "guest"] and points > 30'
) . '')
->then
Expand Down

0 comments on commit 1b5083f

Please sign in to comment.