Skip to content

Commit

Permalink
Merge 3b3101c into 297a4c0
Browse files Browse the repository at this point in the history
  • Loading branch information
curzio-della-santa committed Sep 29, 2015
2 parents 297a4c0 + 3b3101c commit 740f846
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use Knp\DoctrineBehaviors\Model as ORMBehaviors;

use Detail\Persistence\Model\TranslationInterface;

trait KnpTranslatableTrait
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use Doctrine\Common\Collections\ArrayCollection;

use Detail\Persistence\Model\TranslationInterface;

trait TranslatableTrait
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Detail\Persistence\Model\Behavior\Translatable;

interface TranslationInterface
{
/**
* @return string
*/
public function getLocale();
use Detail\Persistence\Model\TranslationInterface as ModelTranslationInterface;

/**
* @deprecated Use Detail\Persistence\Model\TranslationInterface instead
*/
interface TranslationInterface extends ModelTranslationInterface
{
// /**
// * @param TranslatableInterface $translatable
// * @return void
Expand Down
11 changes: 11 additions & 0 deletions src/Detail/Persistence/Model/TranslationInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Detail\Persistence\Model;

interface TranslationInterface
{
/**
* @return string
*/
public function getLocale();
}
7 changes: 1 addition & 6 deletions src/Detail/Persistence/Model/TranslationTextInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@

namespace Detail\Persistence\Model;

interface TranslationTextInterface
interface TranslationTextInterface extends TranslationInterface
{
/**
* @return string
*/
public function getLocale();

/**
* @return string
*/
Expand Down

0 comments on commit 740f846

Please sign in to comment.