From 9d6c6525c38e217c350900d36b38b03572faeec4 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Tue, 23 Feb 2016 21:03:53 +0200 Subject: [PATCH] Removed __construct from all interfaces --- CHANGELOG.md | 1 + phalcon/acl/resourceaware.zep | 4 ++-- phalcon/acl/resourceinterface.zep | 8 +------- phalcon/acl/roleaware.zep | 4 ++-- phalcon/acl/roleinterface.zep | 8 +------- phalcon/cli/router/routeinterface.zep | 8 +------- phalcon/db/adapterinterface.zep | 8 +------- phalcon/db/columninterface.zep | 8 +------- phalcon/db/indexinterface.zep | 14 ++------------ phalcon/db/referenceinterface.zep | 10 ++-------- phalcon/db/resultinterface.zep | 14 +------------- phalcon/di/serviceinterface.zep | 12 +----------- phalcon/http/request/fileinterface.zep | 10 ++-------- phalcon/mvc/collection/behaviorinterface.zep | 12 ++---------- phalcon/mvc/model/behaviorinterface.zep | 10 +--------- phalcon/mvc/model/messageinterface.zep | 12 +----------- phalcon/mvc/model/query/builderinterface.zep | 10 +--------- phalcon/mvc/model/query/statusinterface.zep | 10 ++-------- phalcon/mvc/model/relationinterface.zep | 16 ++-------------- .../mvc/model/transaction/managerinterface.zep | 10 ++-------- phalcon/mvc/router/routeinterface.zep | 8 +------- phalcon/mvc/routerinterface.zep | 6 +++--- phalcon/paginator/adapterinterface.zep | 8 +------- phalcon/validation/messageinterface.zep | 14 ++------------ 24 files changed, 36 insertions(+), 189 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51592a3fe57..3d9af6adadc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ - Fixed issue with `Model::__set` that was setting hidden attributes directly when setters are not declared [#11286](https://github.com/phalcon/cphalcon/issues/11286) - Added `Phalcon\Cli\DispatcherInterface`, `Phalcon\Cli\TaskInterface`, `Phalcon\Cli\RouterInterface` and `Phalcon\Cli\Router\RouteInterface`. - Added methods update(), create() and createIfNotExist(array criteria) to `Phalcon\Mvc\Collection` +- Removed `__construct` from all interfaces [#11410](https://github.com/phalcon/cphalcon/issues/11410) # [2.0.11](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.11) (????-??-??) - Fix Model magic set functionality to maintain variable visibility and utilize setter methods.[#11286](https://github.com/phalcon/cphalcon/issues/11286) diff --git a/phalcon/acl/resourceaware.zep b/phalcon/acl/resourceaware.zep index 76a0bbf069a..bd57ca5b1dd 100644 --- a/phalcon/acl/resourceaware.zep +++ b/phalcon/acl/resourceaware.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -22,7 +22,7 @@ namespace Phalcon\Acl; /** * Phalcon\Acl\ResourceAware * - * Interface for classes which could be used in allow method as RESOURCE, ResourceInterface need __construct method so i decided to do this simple interface + * Interface for classes which could be used in allow method as RESOURCE */ interface ResourceAware { diff --git a/phalcon/acl/resourceinterface.zep b/phalcon/acl/resourceinterface.zep index 7a535763627..525e8772f42 100644 --- a/phalcon/acl/resourceinterface.zep +++ b/phalcon/acl/resourceinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -27,12 +27,6 @@ namespace Phalcon\Acl; */ interface ResourceInterface { - - /** - * Phalcon\Acl\ResourceInterface constructor - */ - public function __construct(string! name, description = null); - /** * Returns the resource name */ diff --git a/phalcon/acl/roleaware.zep b/phalcon/acl/roleaware.zep index f33cccf5dfc..d434b03a62a 100644 --- a/phalcon/acl/roleaware.zep +++ b/phalcon/acl/roleaware.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -22,7 +22,7 @@ namespace Phalcon\Acl; /** * Phalcon\Acl\RoleAware * - * Interface for classes which could be used in allow method as ROLE, RoleInterace need __construct method so i decided to do this simple interface + * Interface for classes which could be used in allow method as ROLE */ interface RoleAware { diff --git a/phalcon/acl/roleinterface.zep b/phalcon/acl/roleinterface.zep index f9d59bf831d..ff22438be77 100644 --- a/phalcon/acl/roleinterface.zep +++ b/phalcon/acl/roleinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,12 +26,6 @@ namespace Phalcon\Acl; */ interface RoleInterface { - - /** - * Phalcon\Acl\Role constructor - */ - public function __construct(string! name, string description = null); - /** * Returns the role name */ diff --git a/phalcon/cli/router/routeinterface.zep b/phalcon/cli/router/routeinterface.zep index 952f05b2d13..584ae839bd5 100644 --- a/phalcon/cli/router/routeinterface.zep +++ b/phalcon/cli/router/routeinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,12 +26,6 @@ namespace Phalcon\Cli\Router; */ interface RouteInterface { - - /** - * Phalcon\Cli\Router\Route constructor - */ - public function __construct(string! pattern, var paths = null); - /** * Replaces placeholders from pattern returning a valid PCRE regular expression */ diff --git a/phalcon/db/adapterinterface.zep b/phalcon/db/adapterinterface.zep index 4b362c464b8..86979edaec2 100644 --- a/phalcon/db/adapterinterface.zep +++ b/phalcon/db/adapterinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,12 +26,6 @@ namespace Phalcon\Db; */ interface AdapterInterface { - - /** - * Constructor for Phalcon\Db\Adapter - */ - public function __construct(array! descriptor); - /** * Returns the first row in a SQL query result * diff --git a/phalcon/db/columninterface.zep b/phalcon/db/columninterface.zep index b478bbb1904..392e536bf79 100644 --- a/phalcon/db/columninterface.zep +++ b/phalcon/db/columninterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,12 +26,6 @@ namespace Phalcon\Db; */ interface ColumnInterface { - - /** - * Phalcon\Db\ColumnInterface constructor - */ - public function __construct(string! columnName, array! definition); - /** * Returns schema's table related to column * diff --git a/phalcon/db/indexinterface.zep b/phalcon/db/indexinterface.zep index 006592f7fe4..a3c1ec3b8fe 100644 --- a/phalcon/db/indexinterface.zep +++ b/phalcon/db/indexinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,16 +26,6 @@ namespace Phalcon\Db; */ interface IndexInterface { - - /** - * Phalcon\Db\Index constructor - * - * @param string indexName - * @param array columns - * @param string type - */ - public function __construct(string! indexName, array! columns, type = null); - /** * Gets the index name * @@ -62,4 +52,4 @@ interface IndexInterface */ public static function __set_state(array! data) -> ; -} \ No newline at end of file +} diff --git a/phalcon/db/referenceinterface.zep b/phalcon/db/referenceinterface.zep index 86426e5319e..48260cee57c 100644 --- a/phalcon/db/referenceinterface.zep +++ b/phalcon/db/referenceinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,12 +26,6 @@ namespace Phalcon\Db; */ interface ReferenceInterface { - - /** - * Phalcon\Db\ReferenceInterface constructor - */ - public function __construct(string! referenceName, array! definition); - /** * Gets the index name * @@ -93,4 +87,4 @@ interface ReferenceInterface */ public static function __set_state(array! data) -> ; -} \ No newline at end of file +} diff --git a/phalcon/db/resultinterface.zep b/phalcon/db/resultinterface.zep index 256a04bec8e..ecd1de8e07f 100644 --- a/phalcon/db/resultinterface.zep +++ b/phalcon/db/resultinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,18 +26,6 @@ namespace Phalcon\Db; */ interface ResultInterface { - - /** - * Phalcon\Db\Result\Pdo constructor - * - * @param \Phalcon\Db\AdapterInterface connection - * @param \PDOStatement result - * @param string sqlStatement - * @param array bindParams - * @param array bindTypes - */ - public function __construct(<\Phalcon\Db\AdapterInterface> connection, <\PDOStatement> result, sqlStatement = null, bindParams = null, bindTypes = null); - /** * Allows to executes the statement again. Some database systems don't support scrollable cursors, * So, as cursors are forward only, we need to execute the cursor again to fetch rows from the begining diff --git a/phalcon/di/serviceinterface.zep b/phalcon/di/serviceinterface.zep index cc94263e963..7204dec16a1 100644 --- a/phalcon/di/serviceinterface.zep +++ b/phalcon/di/serviceinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,16 +26,6 @@ namespace Phalcon\Di; */ interface ServiceInterface { - - /** - * Phalcon\Di\ServiceInterface - * - * @param string name - * @param mixed definition - * @param boolean shared - */ - public function __construct(string name, definition, boolean shared = false); - /** * Returns the service's name * diff --git a/phalcon/http/request/fileinterface.zep b/phalcon/http/request/fileinterface.zep index 433b185bf8f..1999cc32f9e 100644 --- a/phalcon/http/request/fileinterface.zep +++ b/phalcon/http/request/fileinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -27,12 +27,6 @@ namespace Phalcon\Http\Request; */ interface FileInterface { - - /** - * Phalcon\Http\Request\FileInterface constructor - */ - public function __construct(array! file, key = null); - /** * Returns the file size of the uploaded file */ @@ -64,4 +58,4 @@ interface FileInterface */ public function moveTo(string! destination) -> boolean; -} \ No newline at end of file +} diff --git a/phalcon/mvc/collection/behaviorinterface.zep b/phalcon/mvc/collection/behaviorinterface.zep index 822ab652893..7480e131d0f 100644 --- a/phalcon/mvc/collection/behaviorinterface.zep +++ b/phalcon/mvc/collection/behaviorinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -28,14 +28,6 @@ use Phalcon\Mvc\CollectionInterface; */ interface BehaviorInterface { - - /** - * Phalcon\Mvc\Collection\Behavior - * - * @param array options - */ - public function __construct(options = null); - /** * This method receives the notifications from the EventsManager */ @@ -46,4 +38,4 @@ interface BehaviorInterface */ public function missingMethod( collection, string !method, arguments = null); -} \ No newline at end of file +} diff --git a/phalcon/mvc/model/behaviorinterface.zep b/phalcon/mvc/model/behaviorinterface.zep index 6eedb6b2aa5..725af7f5961 100644 --- a/phalcon/mvc/model/behaviorinterface.zep +++ b/phalcon/mvc/model/behaviorinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -28,14 +28,6 @@ use Phalcon\Mvc\ModelInterface; */ interface BehaviorInterface { - - /** - * Phalcon\Mvc\Model\Behavior - * - * @param array options - */ - public function __construct(options = null); - /** * This method receives the notifications from the EventsManager */ diff --git a/phalcon/mvc/model/messageinterface.zep b/phalcon/mvc/model/messageinterface.zep index 3f65534dc19..2b967779af4 100644 --- a/phalcon/mvc/model/messageinterface.zep +++ b/phalcon/mvc/model/messageinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,16 +26,6 @@ namespace Phalcon\Mvc\Model; */ interface MessageInterface { - - /** - * Phalcon\Mvc\Model\Message constructor - * - * @param string message - * @param string field - * @param string type - */ - public function __construct(message, field = null, type = null); - /** * Sets message type * diff --git a/phalcon/mvc/model/query/builderinterface.zep b/phalcon/mvc/model/query/builderinterface.zep index 9b38ec6ff56..4e4adf7f389 100644 --- a/phalcon/mvc/model/query/builderinterface.zep +++ b/phalcon/mvc/model/query/builderinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,14 +26,6 @@ namespace Phalcon\Mvc\Model\Query; */ interface BuilderInterface { - - /** - * Phalcon\Mvc\Model\Query\Builder - * - * @param array params - */ - public function __construct(params = null); - /** * Sets the columns to be queried * diff --git a/phalcon/mvc/model/query/statusinterface.zep b/phalcon/mvc/model/query/statusinterface.zep index 0b1fea76d99..1591a3d56f4 100644 --- a/phalcon/mvc/model/query/statusinterface.zep +++ b/phalcon/mvc/model/query/statusinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -28,12 +28,6 @@ use Phalcon\Mvc\ModelInterface; */ interface StatusInterface { - - /** - * Phalcon\Mvc\Model\Query\Status - */ - public function __construct(boolean success, model); - /** * Returns the model which executed the action */ @@ -49,4 +43,4 @@ interface StatusInterface */ public function success() -> boolean; -} \ No newline at end of file +} diff --git a/phalcon/mvc/model/relationinterface.zep b/phalcon/mvc/model/relationinterface.zep index 40ae9b17c40..77d1fe7e78b 100644 --- a/phalcon/mvc/model/relationinterface.zep +++ b/phalcon/mvc/model/relationinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,18 +26,6 @@ namespace Phalcon\Mvc\Model; */ interface RelationInterface { - - /** - * Phalcon\Mvc\Model\Relation constructor - * - * @param int type - * @param string referencedModel - * @param string|array fields - * @param string|array referencedFields - * @param array options - */ - public function __construct(type, referencedModel, fields, referencedFields, options = null); - /** * Sets the intermediate model dat for has-*-through relations * @@ -85,7 +73,7 @@ interface RelationInterface /** * Returns an option by the specified name - * If the option doesn't exist null is returned + * If the option doesn't exist null is returned */ public function getOption(string! name); diff --git a/phalcon/mvc/model/transaction/managerinterface.zep b/phalcon/mvc/model/transaction/managerinterface.zep index 6916942a0a6..3a403762602 100644 --- a/phalcon/mvc/model/transaction/managerinterface.zep +++ b/phalcon/mvc/model/transaction/managerinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,12 +26,6 @@ namespace Phalcon\Mvc\Model\Transaction; */ interface ManagerInterface { - - /** - * Phalcon\Mvc\Model\Transaction\Manager - */ - public function __construct(<\Phalcon\DiInterface> dependencyInjector = null); - /** * Checks whether manager has an active transaction */ @@ -75,4 +69,4 @@ interface ManagerInterface */ public function collectTransactions(); -} \ No newline at end of file +} diff --git a/phalcon/mvc/router/routeinterface.zep b/phalcon/mvc/router/routeinterface.zep index 027ccdd2258..33d2e6f07df 100644 --- a/phalcon/mvc/router/routeinterface.zep +++ b/phalcon/mvc/router/routeinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,12 +26,6 @@ namespace Phalcon\Mvc\Router; */ interface RouteInterface { - - /** - * Phalcon\Mvc\Router\Route constructor - */ - public function __construct(string! pattern, var paths = null, var httpMethods = null); - /** * Sets a hostname restriction to the route */ diff --git a/phalcon/mvc/routerinterface.zep b/phalcon/mvc/routerinterface.zep index 865cefbc051..ce45aca473d 100644 --- a/phalcon/mvc/routerinterface.zep +++ b/phalcon/mvc/routerinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -131,7 +131,7 @@ interface RouterInterface public function getParams() -> array; /** - * Returns the route that matchs the handled URI + * Returns the route that matches the handled URI */ public function getMatchedRoute() -> ; @@ -141,7 +141,7 @@ interface RouterInterface public function getMatches() -> array; /** - * Check if the router macthes any of the defined routes + * Check if the router matches any of the defined routes */ public function wasMatched() -> boolean; diff --git a/phalcon/paginator/adapterinterface.zep b/phalcon/paginator/adapterinterface.zep index 1d918c09192..505179d3aa2 100644 --- a/phalcon/paginator/adapterinterface.zep +++ b/phalcon/paginator/adapterinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,12 +26,6 @@ namespace Phalcon\Paginator; */ interface AdapterInterface { - - /** - * Phalcon\Paginator\AdapterInterface constructor - */ - public function __construct(array config); - /** * Set the current page number */ diff --git a/phalcon/validation/messageinterface.zep b/phalcon/validation/messageinterface.zep index 69d8346bec6..742e28302c9 100644 --- a/phalcon/validation/messageinterface.zep +++ b/phalcon/validation/messageinterface.zep @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -28,16 +28,6 @@ use Phalcon\Validation\Message; */ interface MessageInterface { - - /** - * Phalcon\Validation\Message constructor - * - * @param string message - * @param string field - * @param string type - */ - public function __construct(string! message, field = null, type = null); - /** * Sets message type */ @@ -82,4 +72,4 @@ interface MessageInterface */ public static function __set_state(array! message) -> ; -} \ No newline at end of file +}