-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
74 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* For the full copyright and license information, please view the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Dispatcher; | ||
|
@@ -120,7 +120,7 @@ abstract class AbstractDispatcher extends AbstractInjectionAware implements Disp | |
* | ||
* @throws \Exception if any uncaught or unhandled exception occurs during the dispatcher process. | ||
*/ | ||
public function dispatch() -> object | bool | ||
public function dispatch() -> var | bool | ||
{ | ||
bool hasService, hasEventsManager; | ||
int numberDispatches; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* For the full copyright and license information, please view the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Dispatcher; | ||
|
@@ -17,8 +17,10 @@ interface DispatcherInterface | |
{ | ||
/** | ||
* Dispatches a handle action taking into account the routing parameters | ||
* | ||
* @return object|false | ||
*/ | ||
public function dispatch() -> object | bool; | ||
public function dispatch() -> var | bool; | ||
|
||
/** | ||
* Forwards the execution flow to another controller/action | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* For the full copyright and license information, please view the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon; | ||
|
@@ -63,8 +63,10 @@ class Filter implements FilterInterface | |
/** | ||
* Get a service. If it is not in the mapper array, create a new object, | ||
* set it and then return it. | ||
* | ||
* @return object | ||
*/ | ||
public function get(string! name) -> object | ||
public function get(string! name) -> var | ||
{ | ||
var definition; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* For the full copyright and license information, please view the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* Implementation of this file has been influenced by Zend Diactoros | ||
* @link https://github.com/zendframework/zend-diactoros | ||
|
@@ -27,9 +27,9 @@ abstract class AbstractCommon | |
* @param mixed $element | ||
* @param string $property | ||
* | ||
* @return mixed | ||
* @return static | ||
*/ | ||
final protected function cloneInstance(var element, string property) -> object | ||
final protected function cloneInstance(var element, string property) -> var | ||
{ | ||
var newInstance; | ||
|
||
|
@@ -60,9 +60,9 @@ abstract class AbstractCommon | |
* @param mixed $element | ||
* @param string $property | ||
* | ||
* @return mixed | ||
* @return static | ||
*/ | ||
final protected function processWith(var element, string property) -> object | ||
final protected function processWith(var element, string property) -> var | ||
{ | ||
this->checkStringParameter(element); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* For the full copyright and license information, please view the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* Implementation of this file has been influenced by Zend Diactoros | ||
* @link https://github.com/zendframework/zend-diactoros | ||
|
@@ -161,9 +161,9 @@ abstract class AbstractMessage extends AbstractCommon | |
* @param string $name | ||
* @param string|string[] $value | ||
* | ||
* @return self | ||
* @return static | ||
*/ | ||
public function withAddedHeader(var name, var value) -> object | ||
public function withAddedHeader(var name, var value) -> var | ||
{ | ||
var existing, headers; | ||
|
||
|
@@ -190,11 +190,11 @@ abstract class AbstractMessage extends AbstractCommon | |
* | ||
* @param StreamInterface $body | ||
* | ||
* @return self | ||
* @return static | ||
* @throws InvalidArgumentException When the body is not valid. | ||
* | ||
*/ | ||
public function withBody(<StreamInterface> body) -> object | ||
public function withBody(<StreamInterface> body) -> var | ||
{ | ||
var newBody; | ||
|
||
|
@@ -217,11 +217,11 @@ abstract class AbstractMessage extends AbstractCommon | |
* @param string $name | ||
* @param string|string[] $value | ||
* | ||
* @return self | ||
* @return static | ||
* @throws InvalidArgumentException for invalid header names or values. | ||
* | ||
*/ | ||
public function withHeader(var name, var value) -> object | ||
public function withHeader(var name, var value) -> var | ||
{ | ||
var headers; | ||
|
||
|
@@ -247,9 +247,9 @@ abstract class AbstractMessage extends AbstractCommon | |
* | ||
* @param string $version | ||
* | ||
* @return self | ||
* @return static | ||
*/ | ||
public function withProtocolVersion(var version) -> object | ||
public function withProtocolVersion(var version) -> var | ||
{ | ||
this->processProtocol(version); | ||
|
||
|
@@ -267,9 +267,9 @@ abstract class AbstractMessage extends AbstractCommon | |
* | ||
* @param string $name | ||
* | ||
* @return self | ||
* @return static | ||
*/ | ||
public function withoutHeader(var name) -> object | ||
public function withoutHeader(var name) -> var | ||
{ | ||
var headers; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* For the full copyright and license information, please view the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* Implementation of this file has been influenced by Zend Diactoros | ||
* @link https://github.com/zendframework/zend-diactoros | ||
|
@@ -95,11 +95,10 @@ abstract class AbstractRequest extends AbstractMessage | |
* | ||
* @param string $method | ||
* | ||
* @return object | ||
* @return static | ||
* @throws InvalidArgumentException for invalid HTTP methods. | ||
* | ||
*/ | ||
public function withMethod(var method) -> object | ||
public function withMethod(var method) -> var | ||
{ | ||
this->processMethod(method); | ||
|
||
|
@@ -123,9 +122,9 @@ abstract class AbstractRequest extends AbstractMessage | |
* | ||
* @param mixed $requestTarget | ||
* | ||
* @return object | ||
* @return static | ||
*/ | ||
public function withRequestTarget(var requestTarget) -> object | ||
public function withRequestTarget(var requestTarget) -> var | ||
{ | ||
if unlikely preg_match("/\s/", requestTarget) { | ||
throw new InvalidArgumentException( | ||
|
@@ -167,9 +166,9 @@ abstract class AbstractRequest extends AbstractMessage | |
* @param UriInterface $uri | ||
* @param bool $preserveHost | ||
* | ||
* @return object | ||
* @return static | ||
*/ | ||
public function withUri(<UriInterface> uri, var preserveHost = false) -> object | ||
public function withUri(<UriInterface> uri, var preserveHost = false) -> var | ||
{ | ||
var headers, newInstance; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* For the full copyright and license information, please view the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Mvc\Model; | ||
|
@@ -18,7 +18,7 @@ use ReflectionFunction; | |
use ReflectionMethod; | ||
|
||
/** | ||
* Phalcon\Mvc\Model\Binding | ||
* Phalcon\Mvc\Model\Binder | ||
* | ||
* This is an class for binding models into params for handler | ||
*/ | ||
|
@@ -94,8 +94,10 @@ class Binder implements BinderInterface | |
|
||
/** | ||
* Find the model by param value. | ||
* | ||
* @return object|false | ||
*/ | ||
protected function findBoundModel(var paramValue, string className) -> object | bool | ||
protected function findBoundModel(var paramValue, string className) -> var | bool | ||
{ | ||
return {className}::findFirst(paramValue); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* For the full copyright and license information, please view the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon; | ||
|
@@ -130,8 +130,10 @@ class Validation extends Injectable implements ValidationInterface | |
|
||
/** | ||
* Returns the bound entity | ||
* | ||
* @return object | ||
*/ | ||
public function getEntity() -> object | ||
public function getEntity() -> var | ||
{ | ||
return this->entity; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* For the full copyright and license information, please view the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Validation; | ||
|
@@ -40,8 +40,10 @@ interface ValidationInterface | |
|
||
/** | ||
* Returns the bound entity | ||
* | ||
* @return object | ||
*/ | ||
public function getEntity() -> object; | ||
public function getEntity() -> var; | ||
|
||
/** | ||
* Returns all the filters or a specific one | ||
|