Skip to content

Commit

Permalink
Rename interface.
Browse files Browse the repository at this point in the history
Use a less dopey name.
  • Loading branch information
markstory committed Aug 8, 2016
1 parent 4de2acb commit ea9c8e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ORM/Behavior/TranslateBehavior.php
Expand Up @@ -22,7 +22,7 @@
use Cake\ORM\Behavior;
use Cake\ORM\Entity;
use Cake\ORM\Locator\LocatorAwareTrait;
use Cake\ORM\MarshalParticipantInterface;
use Cake\ORM\PropertyMarshalInterface;
use Cake\ORM\Query;
use Cake\ORM\Table;
use Cake\Utility\Inflector;
Expand All @@ -39,7 +39,7 @@
* If you want to bring all or certain languages for each of the fetched records,
* you can use the custom `translations` finders that is exposed to the table.
*/
class TranslateBehavior extends Behavior implements MarshalParticipantInterface
class TranslateBehavior extends Behavior implements PropertyMarshalInterface
{

use LocatorAwareTrait;
Expand Down
4 changes: 2 additions & 2 deletions src/ORM/Marshaller.php
Expand Up @@ -20,7 +20,7 @@
use Cake\Database\Type;
use Cake\Datasource\EntityInterface;
use Cake\Datasource\InvalidPropertyInterface;
use Cake\ORM\MarshalParticipantInterface;
use Cake\ORM\PropertyMarshalInterface;
use RuntimeException;

/**
Expand Down Expand Up @@ -118,7 +118,7 @@ protected function _buildPropertyMap($data, $options)
$behaviors = $this->_table->behaviors();
foreach ($behaviors->loaded() as $name) {
$behavior = $behaviors->get($name);
if ($behavior instanceof MarshalParticipantInterface) {
if ($behavior instanceof PropertyMarshalInterface) {
$map = $behavior->buildMarhshalMap($this, $map, $options);
}
}
Expand Down
Expand Up @@ -20,7 +20,7 @@
* This enables behaviors to define behavior for how the properties they provide/manage
* should be marshalled.
*/
interface MarshalParticipantInterface
interface PropertyMarshalInterface
{
/**
* Build a set of properties that should be included in the marshalling process.
Expand Down

0 comments on commit ea9c8e5

Please sign in to comment.