Commit 52ef720c authored by Olivier Lequeux's avatar Olivier Lequeux
Browse files

change Hydrator Interface name

parent a82f04be
<?php <?php
namespace Lavoisier\Hydrators; namespace Lavoisier\Hydrators;
use \Lavoisier\Hydrators\IHydrator; use \Lavoisier\Hydrators\HydratorInterface;
/** /**
* @author Olivier LEQUEUX * @author Olivier LEQUEUX
* hydrate parsing lavoisier XML format after a CSV file conversion * hydrate parsing lavoisier XML format after a CSV file conversion
*/ */
class CSVasXMLHydrator implements IHydrator class CSVasXMLHydrator implements HydratorInterface
{ {
function hydrate($str) function hydrate($str)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace Lavoisier\Hydrators; namespace Lavoisier\Hydrators;
class DefaultHydrator implements IHydrator{ class DefaultHydrator implements HydratorInterface{
public function hydrate($str) { public function hydrate($str) {
return $str; return $str;
......
...@@ -4,7 +4,7 @@ namespace Lavoisier\Hydrators; ...@@ -4,7 +4,7 @@ namespace Lavoisier\Hydrators;
use \Lavoisier\Entries\IEntries; use \Lavoisier\Entries\IEntries;
class EntriesHydrator implements IHydrator class EntriesHydrator implements HydratorInterface
{ {
private $value_as_key; private $value_as_key;
private $rootBinding; private $rootBinding;
......
...@@ -4,7 +4,7 @@ namespace Lavoisier\Hydrators; ...@@ -4,7 +4,7 @@ namespace Lavoisier\Hydrators;
/** /**
* @author Olivier LEQUEUX * @author Olivier LEQUEUX
*/ */
interface IHydrator { interface HydratorInterface {
function hydrate($str); function hydrate($str);
......
...@@ -4,7 +4,7 @@ namespace Lavoisier\Hydrators; ...@@ -4,7 +4,7 @@ namespace Lavoisier\Hydrators;
use \Lavoisier\Entries\Entries; use \Lavoisier\Entries\Entries;
class SimpleXMLHydrator implements IHydrator class SimpleXMLHydrator implements HydratorInterface
{ {
private $prefix; private $prefix;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace Lavoisier\Hydrators; namespace Lavoisier\Hydrators;
class StringHydrator implements IHydrator{ class StringHydrator implements HydratorInterface{
public function hydrate($str) { public function hydrate($str) {
......
...@@ -11,6 +11,7 @@ namespace Lavoisier; ...@@ -11,6 +11,7 @@ namespace Lavoisier;
use \Lavoisier\Hydrators\DefaultHydrator; use \Lavoisier\Hydrators\DefaultHydrator;
use \Lavoisier\Exceptions\HTTPStatusException; use \Lavoisier\Exceptions\HTTPStatusException;
use \Lavoisier\Exceptions\cURLException; use \Lavoisier\Exceptions\cURLException;
use Lavoisier\Hydrators\HydratorInterface;
use \Lavoisier\Hydrators\IHydrator; use \Lavoisier\Hydrators\IHydrator;
class Query class Query
...@@ -118,7 +119,7 @@ class Query ...@@ -118,7 +119,7 @@ class Query
return $this->method; return $this->method;
} }
public function setHydrator(IHydrator $hydrator) public function setHydrator(HydratorInterface $hydrator)
{ {
$this->hydrator = $hydrator; $this->hydrator = $hydrator;
} }
......
<?php <?php
// //
//require_once dirname(__FILE__) . '/../Query.php'; //require_once dirname(__FILE__) . '/../Query.php';
//require_once dirname(__FILE__) . '/../IHydrator.php'; //require_once dirname(__FILE__) . '/../HydratorInterface.php';
//require_once dirname(__FILE__) . '/../Hydrators/DefaultHydrator.php'; //require_once dirname(__FILE__) . '/../Hydrators/DefaultHydrator.php';
//require_once dirname(__FILE__) . '/../Hydrators/EntriesHydrator.php'; //require_once dirname(__FILE__) . '/../Hydrators/EntriesHydrator.php';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment