aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-06-01 12:02:37 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-06-01 12:08:27 +0200
commitb858f9f304eb59304e64d328f6d15bf4f41cb298 (patch)
tree79e86d68cb35d2185c2fef1c4573353836ba588f
parent8dea9e4e8f3dd6fc9fc10ad464d48c3973dedf50 (diff)
downloadPraspel-b858f9f304eb59304e64d328f6d15bf4f41cb298.zip
Praspel-b858f9f304eb59304e64d328f6d15bf4f41cb298.tar.gz
Praspel-b858f9f304eb59304e64d328f6d15bf4f41cb298.tar.bz2
Change `interprete` method name to `interpret`.
-rw-r--r--Praspel.php6
-rw-r--r--Preambler/EncapsulationShunter.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/Praspel.php b/Praspel.php
index bcfd444..01493a2 100644
--- a/Praspel.php
+++ b/Praspel.php
@@ -66,7 +66,7 @@ class Praspel
* @param string $bindToClass Classname to bind.
* @return \Hoa\Praspel\Model\Clause
*/
- public static function interprete($praspel, $bindToClass = null)
+ public static function interpret($praspel, $bindToClass = null)
{
static $_compiler = null;
static $_interpreter = null;
@@ -134,7 +134,7 @@ class Praspel
Core\Consistency::flexEntity('Hoa\Praspel\Praspel');
/**
- * Alias of \Hoa\Praspel::interprete().
+ * Alias of \Hoa\Praspel::interpret().
*
* @param string $praspel Praspel
* @return \Hoa\Praspel\Model\Clause
@@ -142,6 +142,6 @@ Core\Consistency::flexEntity('Hoa\Praspel\Praspel');
if (!function_exists('praspel')) {
function praspel($praspel)
{
- return Praspel::interprete($praspel);
+ return Praspel::interpret($praspel);
}
}
diff --git a/Preambler/EncapsulationShunter.php b/Preambler/EncapsulationShunter.php
index b3ebe16..815011e 100644
--- a/Preambler/EncapsulationShunter.php
+++ b/Preambler/EncapsulationShunter.php
@@ -116,7 +116,7 @@ class EncapsulationShunter
$id = $className . '::__construct';
if (!isset($registry[$id])) {
- $registry[$id] = Praspel::interprete(
+ $registry[$id] = Praspel::interpret(
Praspel::extractFromComment(
$constructor->getDocComment()
),
@@ -147,7 +147,7 @@ class EncapsulationShunter
$id = $className . '::$' . $propertyName;
if (false === isset($registry[$id])) {
- $registry[$id] = Praspel::interprete(
+ $registry[$id] = Praspel::interpret(
Praspel::extractFromComment(
$property->getDocComment()
),