Commit 7b2efebb authored by Olivier Lequeux's avatar Olivier Lequeux
Browse files

change Hydrator Interface name

parent 2c3f659c
<?php
namespace Lavoisier\Hydrators;
use \Lavoisier\Hydrators\IHydrator;
use \Lavoisier\Hydrators\HydratorInterface;
/**
* @author Olivier LEQUEUX
* hydrate parsing lavoisier XML format after a CSV file conversion
*/
class CSVasXMLHydrator implements IHydrator
class CSVasXMLHydrator implements HydratorInterface
{
function hydrate($str)
......
......@@ -2,7 +2,7 @@
namespace Lavoisier\Hydrators;
class DefaultHydrator implements IHydrator{
class DefaultHydrator implements HydratorInterface{
public function hydrate($str) {
return $str;
......
......@@ -4,7 +4,7 @@ namespace Lavoisier\Hydrators;
use \Lavoisier\Entries\EntriesInterface;
class EntriesHydrator implements IHydrator
class EntriesHydrator implements HydratorInterface
{
private $value_as_key;
private $rootBinding;
......
......@@ -4,7 +4,7 @@ namespace Lavoisier\Hydrators;
/**
* @author Olivier LEQUEUX
*/
interface IHydrator {
interface HydratorInterface {
function hydrate($str);
......
......@@ -4,7 +4,7 @@ namespace Lavoisier\Hydrators;
use \Lavoisier\Entries\Entries;
class SimpleXMLHydrator implements IHydrator
class SimpleXMLHydrator implements HydratorInterface
{
private $prefix;
......
......@@ -2,7 +2,7 @@
namespace Lavoisier\Hydrators;
class StringHydrator implements IHydrator{
class StringHydrator implements HydratorInterface{
public function hydrate($str) {
......
......@@ -11,7 +11,7 @@ namespace Lavoisier;
use \Lavoisier\Hydrators\DefaultHydrator;
use \Lavoisier\Exceptions\HTTPStatusException;
use \Lavoisier\Exceptions\cURLException;
use \Lavoisier\Hydrators\IHydrator;
use \Lavoisier\Hydrators\HydratorInterface;
class Query
{
......@@ -118,7 +118,7 @@ class Query
return $this->method;
}
public function setHydrator(IHydrator $hydrator)
public function setHydrator(HydratorInterface $hydrator)
{
$this->hydrator = $hydrator;
}
......
<?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/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