[Beeframework-svn] SF.net SVN: beeframework:[303] trunk/framework/Bee
Brought to you by:
b_hartmann,
m_plomer
From: <m_p...@us...> - 2015-03-12 21:19:39
|
Revision: 303 http://sourceforge.net/p/beeframework/code/303 Author: m_plomer Date: 2015-03-12 21:19:32 +0000 (Thu, 12 Mar 2015) Log Message: ----------- - removed superfluous IJsonSerializable interface Modified Paths: -------------- trunk/framework/Bee/Persistence/Doctrine2/JsonSerializablePaginator.php Removed Paths: ------------- trunk/framework/Bee/Utils/IJsonSerializable.php Modified: trunk/framework/Bee/Persistence/Doctrine2/JsonSerializablePaginator.php =================================================================== --- trunk/framework/Bee/Persistence/Doctrine2/JsonSerializablePaginator.php 2015-03-12 20:06:26 UTC (rev 302) +++ trunk/framework/Bee/Persistence/Doctrine2/JsonSerializablePaginator.php 2015-03-12 21:19:32 UTC (rev 303) @@ -2,15 +2,18 @@ namespace Bee\Persistence\Doctrine2; use Doctrine\ORM\Tools\Pagination\Paginator; -use Bee\Utils\IJsonSerializable; +use JsonSerializable; /** * Class JsonSerializablePaginator * @package Bee\Tools\Entities */ -class JsonSerializablePaginator extends Paginator implements IJsonSerializable { +class JsonSerializablePaginator extends Paginator implements JsonSerializable { - public function jsonSerialize() { + /** + * @return array + */ + function jsonSerialize() { return $this->getIterator()->getArrayCopy(); } } \ No newline at end of file Deleted: trunk/framework/Bee/Utils/IJsonSerializable.php =================================================================== --- trunk/framework/Bee/Utils/IJsonSerializable.php 2015-03-12 20:06:26 UTC (rev 302) +++ trunk/framework/Bee/Utils/IJsonSerializable.php 2015-03-12 21:19:32 UTC (rev 303) @@ -1,13 +0,0 @@ -<?php -namespace Bee\Utils; - -/** - * Interface IJsonSerializable - * @package Iter8\Utils - */ -interface IJsonSerializable { - /** - * @return mixed - */ - function jsonSerialize(); -} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |