diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1cb5cf24..534dd9ad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,10 +10,10 @@ jobs: strategy: matrix: - php-versions: [7.4, 8.0] + php-versions: ["7.4", "8.0", "8.1"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 @@ -24,8 +24,9 @@ jobs: - name: Get Composer Cache Directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" + - name: Cache dependencies - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} diff --git a/src/Acl/Adapter/AbstractAdapter.php b/src/Acl/Adapter/AbstractAdapter.php index 40e57e45..036226ca 100644 --- a/src/Acl/Adapter/AbstractAdapter.php +++ b/src/Acl/Adapter/AbstractAdapter.php @@ -18,6 +18,7 @@ */ abstract class AbstractAdapter extends AbstractEventsAware implements \Phalcon\Acl\Adapter\AdapterInterface, \Phalcon\Events\EventsAwareInterface { + /** * Active access which the list is checking if some role can access it * @@ -93,7 +94,7 @@ public function getDefaultAction(): int } /** - * Sets the default access level (Phalcon\Acl::ALLOW or Phalcon\Acl::DENY) + * Sets the default access level (Phalcon\Acl\Enum::ALLOW or Phalcon\Acl\Enum::DENY) * * @param int $defaultAccess * @return void diff --git a/src/Acl/Adapter/AdapterInterface.php b/src/Acl/Adapter/AdapterInterface.php index 3333fd92..5381b1a3 100644 --- a/src/Acl/Adapter/AdapterInterface.php +++ b/src/Acl/Adapter/AdapterInterface.php @@ -17,6 +17,8 @@ */ interface AdapterInterface { + + /** * Do a role inherit from another existing role * diff --git a/src/Acl/Adapter/Memory.php b/src/Acl/Adapter/Memory.php index 93d03266..16ef9f65 100644 --- a/src/Acl/Adapter/Memory.php +++ b/src/Acl/Adapter/Memory.php @@ -84,6 +84,7 @@ */ class Memory extends \Phalcon\Acl\Adapter\AbstractAdapter { + /** * Access * diff --git a/src/Acl/Component.php b/src/Acl/Component.php index 69bd4d60..b761a687 100644 --- a/src/Acl/Component.php +++ b/src/Acl/Component.php @@ -14,6 +14,7 @@ */ class Component implements \Phalcon\Acl\ComponentInterface { + /** * Component description * diff --git a/src/Acl/ComponentAwareInterface.php b/src/Acl/ComponentAwareInterface.php index 71f4b35b..c15c7e71 100644 --- a/src/Acl/ComponentAwareInterface.php +++ b/src/Acl/ComponentAwareInterface.php @@ -14,6 +14,8 @@ */ interface ComponentAwareInterface { + + /** * Returns component name * diff --git a/src/Acl/ComponentInterface.php b/src/Acl/ComponentInterface.php index f34c4cc0..79a48e56 100644 --- a/src/Acl/ComponentInterface.php +++ b/src/Acl/ComponentInterface.php @@ -14,6 +14,8 @@ */ interface ComponentInterface { + + /** * Returns component description * diff --git a/src/Acl/Exception.php b/src/Acl/Exception.php index 12d0693b..2668cd39 100644 --- a/src/Acl/Exception.php +++ b/src/Acl/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Acl/Role.php b/src/Acl/Role.php index 42a24828..990a378a 100644 --- a/src/Acl/Role.php +++ b/src/Acl/Role.php @@ -14,6 +14,7 @@ */ class Role implements \Phalcon\Acl\RoleInterface { + /** * Role name * diff --git a/src/Acl/RoleAwareInterface.php b/src/Acl/RoleAwareInterface.php index 003fe8bd..a42385eb 100644 --- a/src/Acl/RoleAwareInterface.php +++ b/src/Acl/RoleAwareInterface.php @@ -14,6 +14,8 @@ */ interface RoleAwareInterface { + + /** * Returns role name * diff --git a/src/Acl/RoleInterface.php b/src/Acl/RoleInterface.php index 5c38cb35..4dc42ceb 100644 --- a/src/Acl/RoleInterface.php +++ b/src/Acl/RoleInterface.php @@ -14,6 +14,8 @@ */ interface RoleInterface { + + /** * Returns the role name * diff --git a/src/Annotations/Adapter/AbstractAdapter.php b/src/Annotations/Adapter/AbstractAdapter.php index 6abba564..86a35918 100644 --- a/src/Annotations/Adapter/AbstractAdapter.php +++ b/src/Annotations/Adapter/AbstractAdapter.php @@ -20,6 +20,7 @@ */ abstract class AbstractAdapter implements \Phalcon\Annotations\Adapter\AdapterInterface { + /** * @var array */ @@ -41,23 +42,23 @@ public function get($className): Reflection } /** - * Returns the annotations found in a specific method + * Returns the annotations found in a specific constant * * @param string $className - * @param string $methodName + * @param string $constantName * @return Collection */ - public function getMethod(string $className, string $methodName): Collection + public function getConstant(string $className, string $constantName): Collection { } /** - * Returns the annotations found in all the class' methods + * Returns the annotations found in all the class' constants * * @param string $className * @return array */ - public function getMethods(string $className): array + public function getConstants(string $className): array { } @@ -73,7 +74,7 @@ public function getProperty(string $className, string $propertyName): Collection } /** - * Returns the annotations found in all the class' methods + * Returns the annotations found in all the class' properties * * @param string $className * @return array @@ -82,6 +83,27 @@ public function getProperties(string $className): array { } + /** + * Returns the annotations found in a specific method + * + * @param string $className + * @param string $methodName + * @return Collection + */ + public function getMethod(string $className, string $methodName): Collection + { + } + + /** + * Returns the annotations found in all the class' methods + * + * @param string $className + * @return array + */ + public function getMethods(string $className): array + { + } + /** * Returns the annotation reader * diff --git a/src/Annotations/Adapter/AdapterInterface.php b/src/Annotations/Adapter/AdapterInterface.php index a7090f73..8376b718 100644 --- a/src/Annotations/Adapter/AdapterInterface.php +++ b/src/Annotations/Adapter/AdapterInterface.php @@ -18,6 +18,8 @@ */ interface AdapterInterface { + + /** * Parses or retrieves all the annotations found in a class * @@ -27,21 +29,21 @@ interface AdapterInterface public function get(string $className): Reflection; /** - * Returns the annotations found in a specific method + * Returns the annotations found in a specific constant * * @param string $className - * @param string $methodName + * @param string $constantName * @return Collection */ - public function getMethod(string $className, string $methodName): Collection; + public function getConstant(string $className, string $constantName): Collection; /** - * Returns the annotations found in all the class' methods + * Returns the annotations found in all the class' constants * * @param string $className * @return array */ - public function getMethods(string $className): array; + public function getConstants(string $className): array; /** * Returns the annotations found in a specific property @@ -60,6 +62,23 @@ public function getProperty(string $className, string $propertyName): Collection */ public function getProperties(string $className): array; + /** + * Returns the annotations found in a specific method + * + * @param string $className + * @param string $methodName + * @return Collection + */ + public function getMethod(string $className, string $methodName): Collection; + + /** + * Returns the annotations found in all the class' methods + * + * @param string $className + * @return array + */ + public function getMethods(string $className): array; + /** * Returns the annotation reader * diff --git a/src/Annotations/Adapter/Apcu.php b/src/Annotations/Adapter/Apcu.php index 7cb1d60b..ead7e836 100644 --- a/src/Annotations/Adapter/Apcu.php +++ b/src/Annotations/Adapter/Apcu.php @@ -22,6 +22,7 @@ */ class Apcu extends \Phalcon\Annotations\Adapter\AbstractAdapter { + /** * @var string */ diff --git a/src/Annotations/Adapter/Memory.php b/src/Annotations/Adapter/Memory.php index 7e4194ec..527037ad 100644 --- a/src/Annotations/Adapter/Memory.php +++ b/src/Annotations/Adapter/Memory.php @@ -17,6 +17,7 @@ */ class Memory extends \Phalcon\Annotations\Adapter\AbstractAdapter { + /** * @var mixed */ diff --git a/src/Annotations/Adapter/Stream.php b/src/Annotations/Adapter/Stream.php index ead578fb..08cb7931 100644 --- a/src/Annotations/Adapter/Stream.php +++ b/src/Annotations/Adapter/Stream.php @@ -28,6 +28,7 @@ */ class Stream extends \Phalcon\Annotations\Adapter\AbstractAdapter { + /** * @var string */ diff --git a/src/Annotations/Annotation.php b/src/Annotations/Annotation.php index daa1d03a..9c29ae36 100644 --- a/src/Annotations/Annotation.php +++ b/src/Annotations/Annotation.php @@ -14,6 +14,7 @@ */ class Annotation { + /** * Annotation Arguments * diff --git a/src/Annotations/AnnotationsFactory.php b/src/Annotations/AnnotationsFactory.php index 94105e4d..ac43ee99 100644 --- a/src/Annotations/AnnotationsFactory.php +++ b/src/Annotations/AnnotationsFactory.php @@ -18,6 +18,8 @@ */ class AnnotationsFactory extends AbstractFactory { + + /** * AdapterFactory constructor. * diff --git a/src/Annotations/Collection.php b/src/Annotations/Collection.php index ed37d262..a92b49de 100644 --- a/src/Annotations/Collection.php +++ b/src/Annotations/Collection.php @@ -31,6 +31,7 @@ */ class Collection implements \Iterator, \Countable { + /** * @var array */ @@ -62,7 +63,7 @@ public function count(): int /** * Returns the current annotation in the iterator * - * @return bool|Annotation + * @return mixed */ public function current() { diff --git a/src/Annotations/Exception.php b/src/Annotations/Exception.php index 07286917..7aa18eea 100644 --- a/src/Annotations/Exception.php +++ b/src/Annotations/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Annotations/Reader.php b/src/Annotations/Reader.php index b0d607d2..3f718b1a 100644 --- a/src/Annotations/Reader.php +++ b/src/Annotations/Reader.php @@ -16,6 +16,8 @@ */ class Reader implements \Phalcon\Annotations\ReaderInterface { + + /** * Reads annotations from the class docblocks, its methods and/or properties * diff --git a/src/Annotations/ReaderInterface.php b/src/Annotations/ReaderInterface.php index 4b440d31..477ee4b3 100644 --- a/src/Annotations/ReaderInterface.php +++ b/src/Annotations/ReaderInterface.php @@ -14,8 +14,10 @@ */ interface ReaderInterface { + + /** - * Reads annotations from the class docblocks, its methods and/or properties + * Reads annotations from the class docblocks, its constants, properties and methods * * @param string $className * @return array diff --git a/src/Annotations/Reflection.php b/src/Annotations/Reflection.php index 9b1ddf4d..196ebe91 100644 --- a/src/Annotations/Reflection.php +++ b/src/Annotations/Reflection.php @@ -29,6 +29,7 @@ */ class Reflection { + /** * @var array * TODO: Make always array @@ -39,7 +40,7 @@ class Reflection * @var array * TODO: Make always array */ - protected $methodAnnotations; + protected $constantAnnotations; /** * @var array @@ -47,6 +48,12 @@ class Reflection */ protected $propertyAnnotations; + /** + * @var array + * TODO: Make always array + */ + protected $methodAnnotations; + /** * @var array */ @@ -71,11 +78,11 @@ public function getClassAnnotations() } /** - * Returns the annotations found in the methods' docblocks + * Returns the annotations found in the constants' docblocks * * @return array|bool|Collection[] */ - public function getMethodsAnnotations() + public function getConstantsAnnotations() { } @@ -88,6 +95,15 @@ public function getPropertiesAnnotations() { } + /** + * Returns the annotations found in the methods' docblocks + * + * @return array|bool|Collection[] + */ + public function getMethodsAnnotations() + { + } + /** * Returns the raw parsing intermediate definitions used to construct the * reflection diff --git a/src/Application/AbstractApplication.php b/src/Application/AbstractApplication.php index 43c611db..a7f623df 100644 --- a/src/Application/AbstractApplication.php +++ b/src/Application/AbstractApplication.php @@ -19,15 +19,16 @@ */ abstract class AbstractApplication extends Injectable implements \Phalcon\Events\EventsAwareInterface { + /** * @var DiInterface|null */ protected $container = null; /** - * @var string|null + * @var string */ - protected $defaultModule = null; + protected $defaultModule = ''; /** * @var ManagerInterface|null diff --git a/src/Application/Exception.php b/src/Application/Exception.php index b4a27097..4e182279 100644 --- a/src/Application/Exception.php +++ b/src/Application/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Assets/Asset.php b/src/Assets/Asset.php index 9ced8acf..569089bc 100644 --- a/src/Assets/Asset.php +++ b/src/Assets/Asset.php @@ -30,6 +30,7 @@ */ class Asset implements \Phalcon\Assets\AssetInterface { + /** * @var array */ diff --git a/src/Assets/Asset/Css.php b/src/Assets/Asset/Css.php index 58fac1d8..f0dba5f3 100644 --- a/src/Assets/Asset/Css.php +++ b/src/Assets/Asset/Css.php @@ -16,6 +16,8 @@ */ class Css extends \Phalcon\Assets\Asset { + + /** * Phalcon\Assets\Asset\Css constructor * diff --git a/src/Assets/Asset/Js.php b/src/Assets/Asset/Js.php index f4f75411..406a5b34 100644 --- a/src/Assets/Asset/Js.php +++ b/src/Assets/Asset/Js.php @@ -16,6 +16,8 @@ */ class Js extends \Phalcon\Assets\Asset { + + /** * Phalcon\Assets\Asset\Js constructor * diff --git a/src/Assets/AssetInterface.php b/src/Assets/AssetInterface.php index d16d8a78..53de8e14 100644 --- a/src/Assets/AssetInterface.php +++ b/src/Assets/AssetInterface.php @@ -14,6 +14,8 @@ */ interface AssetInterface { + + /** * Gets the asset's key. * diff --git a/src/Assets/Collection.php b/src/Assets/Collection.php index 50e7b15c..430a987f 100644 --- a/src/Assets/Collection.php +++ b/src/Assets/Collection.php @@ -32,6 +32,7 @@ */ class Collection implements \Countable, \IteratorAggregate { + /** * @var array */ @@ -275,8 +276,9 @@ public function count(): int * Returns the generator of the class * * @link https://php.net/manual/en/iteratoraggregate.getiterator.php + * @return \Traversable */ - public function getIterator() + public function getIterator(): \Traversable { } diff --git a/src/Assets/Exception.php b/src/Assets/Exception.php index f17ac72d..b903f4a5 100644 --- a/src/Assets/Exception.php +++ b/src/Assets/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Assets/FilterInterface.php b/src/Assets/FilterInterface.php index 5654aa6b..8ca18709 100644 --- a/src/Assets/FilterInterface.php +++ b/src/Assets/FilterInterface.php @@ -14,6 +14,8 @@ */ interface FilterInterface { + + /** * Filters the content returning a string with the filtered content * diff --git a/src/Assets/Filters/Cssmin.php b/src/Assets/Filters/Cssmin.php index 58fc0fec..86967d4c 100644 --- a/src/Assets/Filters/Cssmin.php +++ b/src/Assets/Filters/Cssmin.php @@ -17,6 +17,8 @@ */ class Cssmin implements \Phalcon\Assets\FilterInterface { + + /** * Filters the content using CSSMIN * NOTE: This functionality is not currently available diff --git a/src/Assets/Filters/Jsmin.php b/src/Assets/Filters/Jsmin.php index afc0cd04..b29002a4 100644 --- a/src/Assets/Filters/Jsmin.php +++ b/src/Assets/Filters/Jsmin.php @@ -18,6 +18,8 @@ */ class Jsmin implements \Phalcon\Assets\FilterInterface { + + /** * Filters the content using JSMIN * NOTE: This functionality is not currently available diff --git a/src/Assets/Filters/None.php b/src/Assets/Filters/None.php index 215abf06..5aa208fb 100644 --- a/src/Assets/Filters/None.php +++ b/src/Assets/Filters/None.php @@ -16,6 +16,8 @@ */ class None implements \Phalcon\Assets\FilterInterface { + + /** * Returns the content as is * diff --git a/src/Assets/Inline.php b/src/Assets/Inline.php index ea4d39bc..1862b470 100644 --- a/src/Assets/Inline.php +++ b/src/Assets/Inline.php @@ -18,6 +18,7 @@ */ class Inline implements \Phalcon\Assets\AssetInterface { + /** * @var array | null */ diff --git a/src/Assets/Inline/Css.php b/src/Assets/Inline/Css.php index da4a0502..67a59a38 100644 --- a/src/Assets/Inline/Css.php +++ b/src/Assets/Inline/Css.php @@ -16,6 +16,8 @@ */ class Css extends \Phalcon\Assets\Inline { + + /** * Phalcon\Assets\Inline\Css constructor * diff --git a/src/Assets/Inline/Js.php b/src/Assets/Inline/Js.php index 3c6e89ce..038e3fb9 100644 --- a/src/Assets/Inline/Js.php +++ b/src/Assets/Inline/Js.php @@ -16,6 +16,8 @@ */ class Js extends \Phalcon\Assets\Inline { + + /** * Phalcon\Assets\Inline\Js constructor * diff --git a/src/Assets/Manager.php b/src/Assets/Manager.php index 40e39036..b59608cb 100644 --- a/src/Assets/Manager.php +++ b/src/Assets/Manager.php @@ -29,6 +29,7 @@ */ class Manager extends AbstractInjectionAware { + /** * @var array */ diff --git a/src/Autoload/Exception.php b/src/Autoload/Exception.php index e6d78f3d..9077ae55 100644 --- a/src/Autoload/Exception.php +++ b/src/Autoload/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Autoload/Loader.php b/src/Autoload/Loader.php index 78b81731..db31ef45 100644 --- a/src/Autoload/Loader.php +++ b/src/Autoload/Loader.php @@ -30,6 +30,7 @@ */ class Loader extends AbstractEventsAware { + /** * @var string|null */ diff --git a/src/Cache/AbstractCache.php b/src/Cache/AbstractCache.php new file mode 100644 index 00000000..ca7dd36b --- /dev/null +++ b/src/Cache/AbstractCache.php @@ -0,0 +1,188 @@ + + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +namespace Phalcon\Cache; + +use DateInterval; +use Phalcon\Cache\Adapter\AdapterInterface; +use Phalcon\Cache\Exception\InvalidArgumentException; +use Traversable; + +/** + * This component offers caching capabilities for your application. + * Phalcon\Cache implements PSR-16. + * + * @property AdapterInterface $adapter + */ +abstract class AbstractCache implements \Phalcon\Cache\CacheInterface +{ + + /** + * The adapter + * + * @var AdapterInterface + */ + protected $adapter; + + /** + * Constructor. + * + * @param AdapterInterface $adapter The cache adapter + */ + public function __construct(\Phalcon\Cache\Adapter\AdapterInterface $adapter) + { + } + + /** + * Returns the current adapter + * + * @return AdapterInterface + */ + public function getAdapter(): AdapterInterface + { + } + + /** + * Checks the key. If it contains invalid characters an exception is thrown + * + * @param mixed $key + * + * @throws InvalidArgumentException + * @return void + */ + protected function checkKey(string $key): void + { + } + + /** + * Checks the key. If it contains invalid characters an exception is thrown + * + * @param mixed $keys + * + * @throws InvalidArgumentException + * @return void + */ + protected function checkKeys($keys): void + { + } + + /** + * Wipes clean the entire cache's keys. + * + * @return bool True on success and false on failure. + */ + protected function doClear(): bool + { + } + + /** + * Delete an item from the cache by its unique key. + * + * @param string $key The unique cache key of the item to delete. + * + * @return bool True if the item was successfully removed. False if there + * was an error. + * + * @throws InvalidArgumentException MUST be thrown if the $key string is + * not a legal value. + */ + protected function doDelete(string $key): bool + { + } + + /** + * Deletes multiple cache items in a single operation. + * + * @param mixed $keys + * @return bool + */ + protected function doDeleteMultiple($keys): bool + { + } + + /** + * Fetches a value from the cache. + * + * @param string $key The unique key of this item in the cache. + * @param mixed $defaultValue Default value to return if the key does not exist. + * + * @return mixed The value of the item from the cache, or $default in case + * of cache miss. + * + * @throws InvalidArgumentException MUST be thrown if the $key string is + * not a legal value. + */ + protected function doGet(string $key, $defaultValue = null) + { + } + + /** + * Obtains multiple cache items by their unique keys. + * + * @param mixed $keys + * @param mixed $defaultValue + */ + protected function doGetMultiple($keys, $defaultValue = null) + { + } + + /** + * Determines whether an item is present in the cache. + * + * @param string $key The cache item key. + * + * @return bool + * + * @throws InvalidArgumentException MUST be thrown if the $key string is + * not a legal value. + */ + protected function doHas(string $key): bool + { + } + + /** + * Persists data in the cache, uniquely referenced by a key with an optional + * expiration TTL time. + * + * @param string $key The key of the item to store. + * @param mixed $value The value of the item to store. + * Must be serializable. + * @param null|int|DateInterval $ttl Optional. The TTL value of this + * item. If no value is sent and the + * driver supports TTL then the library + * may set a default value for it or + * let the driver take care of that. + * + * @return bool True on success and false on failure. + * + * @throws InvalidArgumentException MUST be thrown if the $key string is not + * a legal value. + */ + protected function doSet(string $key, $value, $ttl = null): bool + { + } + + /** + * Persists a set of key => value pairs in the cache, with an optional TTL. + * + * @param mixed $values + * @param mixed $ttl + * @return bool + */ + protected function doSetMultiple($values, $ttl = null): bool + { + } + + /** + * Returns the exception class that will be used for exceptions thrown + * + * @return string + */ + abstract protected function getExceptionClass(): string; +} diff --git a/src/Cache/Adapter/AdapterInterface.php b/src/Cache/Adapter/AdapterInterface.php index 254ef2de..a6214327 100644 --- a/src/Cache/Adapter/AdapterInterface.php +++ b/src/Cache/Adapter/AdapterInterface.php @@ -16,4 +16,6 @@ */ interface AdapterInterface extends StorageAdapterInterface { + + } diff --git a/src/Cache/Adapter/Apcu.php b/src/Cache/Adapter/Apcu.php index 63cd8413..971b9848 100644 --- a/src/Cache/Adapter/Apcu.php +++ b/src/Cache/Adapter/Apcu.php @@ -17,4 +17,6 @@ */ class Apcu extends \Phalcon\Storage\Adapter\Apcu implements CacheAdapterInterface { + + } diff --git a/src/Cache/Adapter/Libmemcached.php b/src/Cache/Adapter/Libmemcached.php index 8d9bc0b3..959d3358 100644 --- a/src/Cache/Adapter/Libmemcached.php +++ b/src/Cache/Adapter/Libmemcached.php @@ -17,4 +17,6 @@ */ class Libmemcached extends \Phalcon\Storage\Adapter\Libmemcached implements CacheAdapterInterface { + + } diff --git a/src/Cache/Adapter/Memory.php b/src/Cache/Adapter/Memory.php index e615a152..f9593f7d 100644 --- a/src/Cache/Adapter/Memory.php +++ b/src/Cache/Adapter/Memory.php @@ -17,4 +17,6 @@ */ class Memory extends \Phalcon\Storage\Adapter\Memory implements CacheAdapterInterface { + + } diff --git a/src/Cache/Adapter/Redis.php b/src/Cache/Adapter/Redis.php index f8d676f2..0a8f5b08 100644 --- a/src/Cache/Adapter/Redis.php +++ b/src/Cache/Adapter/Redis.php @@ -17,4 +17,6 @@ */ class Redis extends \Phalcon\Storage\Adapter\Redis implements CacheAdapterInterface { + + } diff --git a/src/Cache/Adapter/Stream.php b/src/Cache/Adapter/Stream.php index 37ddff08..9f5bcbe0 100644 --- a/src/Cache/Adapter/Stream.php +++ b/src/Cache/Adapter/Stream.php @@ -17,4 +17,6 @@ */ class Stream extends \Phalcon\Storage\Adapter\Stream implements CacheAdapterInterface { + + } diff --git a/src/Cache/AdapterFactory.php b/src/Cache/AdapterFactory.php index ae451a05..51cce574 100644 --- a/src/Cache/AdapterFactory.php +++ b/src/Cache/AdapterFactory.php @@ -21,6 +21,7 @@ */ class AdapterFactory extends AbstractFactory { + /** * @var SerializerFactory */ diff --git a/src/Cache/Cache.php b/src/Cache/Cache.php index 4d8bd558..bd199fba 100644 --- a/src/Cache/Cache.php +++ b/src/Cache/Cache.php @@ -12,8 +12,6 @@ use DateInterval; use Phalcon\Cache\Adapter\AdapterInterface; use Phalcon\Cache\Exception\InvalidArgumentException; -use Psr\SimpleCache\CacheInterface; -use Traversable; /** * This component offers caching capabilities for your application. @@ -21,32 +19,9 @@ * * @property AdapterInterface $adapter */ -class Cache implements \Psr\SimpleCache\CacheInterface +class Cache extends \Phalcon\Cache\AbstractCache { - /** - * The adapter - * - * @var AdapterInterface - */ - protected $adapter; - /** - * The adapter - * - * @return mixed - */ - public function getAdapter() - { - } - - /** - * Constructor. - * - * @param AdapterInterface $adapter The cache adapter - */ - public function __construct(\Phalcon\Cache\Adapter\AdapterInterface $adapter) - { - } /** * Wipes clean the entire cache's keys. @@ -68,21 +43,15 @@ public function clear(): bool * @throws InvalidArgumentException MUST be thrown if the $key string is * not a legal value. */ - public function delete($key): bool + public function delete(string $key): bool { } /** * Deletes multiple cache items in a single operation. * - * @param iterable $keys A list of string-based keys to be deleted. - * - * @return bool True if the items were successfully removed. False if there - * was an error. - * - * @throws InvalidArgumentException MUST be thrown if $keys is neither an - * array nor a Traversable, or if any of - * the $keys are not a legal value. + * @param mixed $keys + * @return bool */ public function deleteMultiple($keys): bool { @@ -92,8 +61,7 @@ public function deleteMultiple($keys): bool * Fetches a value from the cache. * * @param string $key The unique key of this item in the cache. - * @param mixed $defaultValue Default value to return if the key does - * not exist. + * @param mixed $defaultValue Default value to return if the key does not exist. * * @return mixed The value of the item from the cache, or $default in case * of cache miss. @@ -101,23 +69,15 @@ public function deleteMultiple($keys): bool * @throws InvalidArgumentException MUST be thrown if the $key string is * not a legal value. */ - public function get($key, $defaultValue = null) + public function get(string $key, $defaultValue = null) { } /** * Obtains multiple cache items by their unique keys. * - * @param iterable $keys A list of keys that can obtained in a - * single operation. - * @param mixed $defaultValue Default value to return for keys that do - * not exist. - * - * @return iterable A list of key => value pairs. Cache - * keys that do not exist or are stale will have $default as value. - * - * @throws InvalidArgumentException MUST be thrown if $keys is neither an - * array nor a Traversable, or if any of the $keys are not a legal value. + * @param mixed $keys + * @param mixed $defaultValue */ public function getMultiple($keys, $defaultValue = null) { @@ -133,7 +93,7 @@ public function getMultiple($keys, $defaultValue = null) * @throws InvalidArgumentException MUST be thrown if the $key string is * not a legal value. */ - public function has($key): bool + public function has(string $key): bool { } @@ -155,52 +115,27 @@ public function has($key): bool * @throws InvalidArgumentException MUST be thrown if the $key string is not * a legal value. */ - public function set($key, $value, $ttl = null): bool + public function set(string $key, $value, $ttl = null): bool { } /** * Persists a set of key => value pairs in the cache, with an optional TTL. * - * @param iterable $values A list of key => value pairs for a - * multiple-set operation. - * @param null|int|DateInterval $ttl Optional. The TTL value of this - * item. If no value is sent and the - * driver supports TTL then the - * library may set a default value for - * it or let the driver take care of - * that. - * - * @return bool True on success and false on failure. - * - * @throws InvalidArgumentException MUST be thrown if $values is neither an - * array nor a Traversable, or if any of the $values are not a legal value. + * @param mixed $values + * @param mixed $ttl + * @return bool */ public function setMultiple($values, $ttl = null): bool { } /** - * Checks the key. If it contains invalid characters an exception is thrown - * - * @param mixed $key - * - * @throws InvalidArgumentException - * @return void - */ - protected function checkKey(string $key): void - { - } - - /** - * Checks the key. If it contains invalid characters an exception is thrown - * - * @param mixed $keys + * Returns the exception class that will be used for exceptions thrown * - * @throws InvalidArgumentException - * @return void + * @return string */ - protected function checkKeys($keys): void + protected function getExceptionClass(): string { } } diff --git a/src/Cache/CacheFactory.php b/src/Cache/CacheFactory.php index 6f17be6e..7aca9328 100644 --- a/src/Cache/CacheFactory.php +++ b/src/Cache/CacheFactory.php @@ -14,7 +14,6 @@ use Phalcon\Cache\Exception\Exception; use Phalcon\Config\ConfigInterface; use Phalcon\Factory\AbstractConfigFactory; -use Psr\SimpleCache\CacheInterface; /** * Creates a new Cache class @@ -23,6 +22,7 @@ */ class CacheFactory extends AbstractConfigFactory { + /** * @var AdapterFactory */ diff --git a/src/Cache/CacheInterface.php b/src/Cache/CacheInterface.php new file mode 100644 index 00000000..904c023c --- /dev/null +++ b/src/Cache/CacheInterface.php @@ -0,0 +1,112 @@ + + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +namespace Phalcon\Cache; + +use DateInterval; +use Phalcon\Cache\Exception\InvalidArgumentException; + +/** + * Interface for Phalcon\Cache\Cache + */ +interface CacheInterface +{ + + + /** + * Wipes clean the entire cache's keys. + * + * @return bool True on success and false on failure. + */ + public function clear(): bool; + + /** + * Delete an item from the cache by its unique key. + * + * @param string $key The unique cache key of the item to delete. + * + * @return bool True if the item was successfully removed. False if there + * was an error. + * + * @throws InvalidArgumentException MUST be thrown if the $key string is + * not a legal value. + */ + public function delete(string $key): bool; + + /** + * Deletes multiple cache items in a single operation. + * + * @param mixed $keys + * @return bool + */ + public function deleteMultiple($keys): bool; + + /** + * Fetches a value from the cache. + * + * @param string $key The unique key of this item in the cache. + * @param mixed $defaultValue Default value to return if the key does not exist. + * + * @return mixed The value of the item from the cache, or $default in case + * of cache miss. + * + * @throws InvalidArgumentException MUST be thrown if the $key string is + * not a legal value. + */ + public function get(string $key, $defaultValue = null); + + /** + * Obtains multiple cache items by their unique keys. + * + * @param mixed $keys + * @param mixed $defaultValue + */ + public function getMultiple($keys, $defaultValue = null); + + /** + * Determines whether an item is present in the cache. + * + * @param string $key The cache item key. + * + * @return bool + * + * @throws InvalidArgumentException MUST be thrown if the $key string is + * not a legal value. + */ + public function has(string $key): bool; + + /** + * Persists data in the cache, uniquely referenced by a key with an optional + * expiration TTL time. + * + * @param string $key The key of the item to store. + * @param mixed $value The value of the item to store. + * Must be serializable. + * @param null|int|DateInterval $ttl Optional. The TTL value of this + * item. If no value is sent and the + * driver supports TTL then the library + * may set a default value for it or + * let the driver take care of that. + * + * @return bool True on success and false on failure. + * + * @throws InvalidArgumentException MUST be thrown if the $key string is not + * a legal value. + */ + public function set(string $key, $value, $ttl = null): bool; + + /** + * Persists a set of key => value pairs in the cache, with an optional TTL. + * + * @param mixed $values + * @param mixed $ttl + * @return bool + */ + public function setMultiple($values, $ttl = null): bool; +} diff --git a/src/Cache/Exception/Exception.php b/src/Cache/Exception/Exception.php index 8a760cbf..7b4446e7 100644 --- a/src/Cache/Exception/Exception.php +++ b/src/Cache/Exception/Exception.php @@ -12,6 +12,8 @@ /** * Exceptions thrown in Phalcon\Cache will use this class */ -class Exception extends \Exception implements \Psr\SimpleCache\CacheException +class Exception extends \Exception { + + } diff --git a/src/Cache/Exception/InvalidArgumentException.php b/src/Cache/Exception/InvalidArgumentException.php index 3244575c..4915ef8c 100644 --- a/src/Cache/Exception/InvalidArgumentException.php +++ b/src/Cache/Exception/InvalidArgumentException.php @@ -12,6 +12,8 @@ /** * Exceptions thrown in Phalcon\Cache will use this class */ -class InvalidArgumentException extends \Exception implements \Psr\SimpleCache\InvalidArgumentException +class InvalidArgumentException extends \Exception { + + } diff --git a/src/Cli/Console.php b/src/Cli/Console.php index bdf8e6d4..3f7f3250 100644 --- a/src/Cli/Console.php +++ b/src/Cli/Console.php @@ -20,6 +20,7 @@ */ class Console extends AbstractApplication { + /** * @var array */ diff --git a/src/Cli/Console/Exception.php b/src/Cli/Console/Exception.php index d4819feb..7c940feb 100644 --- a/src/Cli/Console/Exception.php +++ b/src/Cli/Console/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Phalcon\Application\Exception { + + } diff --git a/src/Cli/Dispatcher.php b/src/Cli/Dispatcher.php index de1e7333..d13eee23 100644 --- a/src/Cli/Dispatcher.php +++ b/src/Cli/Dispatcher.php @@ -38,6 +38,7 @@ */ class Dispatcher extends \Phalcon\Dispatcher\AbstractDispatcher implements \Phalcon\Cli\DispatcherInterface { + protected $defaultHandler = 'main'; /** diff --git a/src/Cli/Dispatcher/Exception.php b/src/Cli/Dispatcher/Exception.php index 6b0516fc..c69ca0f1 100644 --- a/src/Cli/Dispatcher/Exception.php +++ b/src/Cli/Dispatcher/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Phalcon\Dispatcher\Exception { + + } diff --git a/src/Cli/DispatcherInterface.php b/src/Cli/DispatcherInterface.php index a53c658e..42840d3c 100644 --- a/src/Cli/DispatcherInterface.php +++ b/src/Cli/DispatcherInterface.php @@ -16,6 +16,8 @@ */ interface DispatcherInterface extends DispatcherInterfaceBase { + + /** * Returns the active task in the dispatcher * diff --git a/src/Cli/Router.php b/src/Cli/Router.php index 3603e13c..22189344 100644 --- a/src/Cli/Router.php +++ b/src/Cli/Router.php @@ -37,6 +37,7 @@ */ class Router extends AbstractInjectionAware { + /** * @var string|null */ @@ -48,9 +49,9 @@ class Router extends AbstractInjectionAware protected $defaultAction = null; /** - * @var string|null + * @var string */ - protected $defaultModule = null; + protected $defaultModule = ''; /** * @var array @@ -74,9 +75,9 @@ class Router extends AbstractInjectionAware protected $matches = null; /** - * @var string|null + * @var string */ - protected $module = null; + protected $module = ''; /** * @var array diff --git a/src/Cli/Router/Exception.php b/src/Cli/Router/Exception.php index 9f1ee8e0..0eca2fcb 100644 --- a/src/Cli/Router/Exception.php +++ b/src/Cli/Router/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Cli/Router/RouteInterface.php b/src/Cli/Router/RouteInterface.php index cdfe2c9a..3aea2d21 100644 --- a/src/Cli/Router/RouteInterface.php +++ b/src/Cli/Router/RouteInterface.php @@ -14,6 +14,8 @@ */ interface RouteInterface { + + /** * Replaces placeholders from pattern returning a valid PCRE regular * expression diff --git a/src/Cli/RouterInterface.php b/src/Cli/RouterInterface.php index 5a7608cc..efcba3b5 100644 --- a/src/Cli/RouterInterface.php +++ b/src/Cli/RouterInterface.php @@ -16,6 +16,8 @@ */ interface RouterInterface { + + /** * Adds a route to the router on any HTTP method * diff --git a/src/Cli/Task.php b/src/Cli/Task.php index 96885d53..2bd6ba4b 100644 --- a/src/Cli/Task.php +++ b/src/Cli/Task.php @@ -39,6 +39,7 @@ */ class Task extends Injectable implements \Phalcon\Cli\TaskInterface, \Phalcon\Events\EventsAwareInterface { + /** * @var ManagerInterface */ diff --git a/src/Cli/TaskInterface.php b/src/Cli/TaskInterface.php index 41d8f6dd..85fd522f 100644 --- a/src/Cli/TaskInterface.php +++ b/src/Cli/TaskInterface.php @@ -14,4 +14,6 @@ */ interface TaskInterface { + + } diff --git a/src/Config/Adapter/Grouped.php b/src/Config/Adapter/Grouped.php index 9b896997..8d25daac 100644 --- a/src/Config/Adapter/Grouped.php +++ b/src/Config/Adapter/Grouped.php @@ -18,7 +18,7 @@ /** * Reads multiple files (or arrays) and merges them all together. * - * See `Phalcon\Config\Factory::load` To load Config Adapter class using 'adapter' option. + * See `Phalcon\Config\ConfigFactory::load` To load Config Adapter class using 'adapter' option. * * ```php * use Phalcon\Config\Adapter\Grouped; @@ -68,6 +68,8 @@ */ class Grouped extends Config { + + /** * Phalcon\Config\Adapter\Grouped constructor * diff --git a/src/Config/Adapter/Ini.php b/src/Config/Adapter/Ini.php index 846bbe9c..b7e3fc82 100644 --- a/src/Config/Adapter/Ini.php +++ b/src/Config/Adapter/Ini.php @@ -57,6 +57,8 @@ */ class Ini extends Config { + + /** * Ini constructor. * diff --git a/src/Config/Adapter/Json.php b/src/Config/Adapter/Json.php index a06d5804..1c2321b7 100644 --- a/src/Config/Adapter/Json.php +++ b/src/Config/Adapter/Json.php @@ -34,6 +34,8 @@ */ class Json extends Config { + + /** * Phalcon\Config\Adapter\Json constructor * diff --git a/src/Config/Adapter/Php.php b/src/Config/Adapter/Php.php index 95ccf762..8e721bab 100644 --- a/src/Config/Adapter/Php.php +++ b/src/Config/Adapter/Php.php @@ -48,6 +48,8 @@ */ class Php extends Config { + + /** * Phalcon\Config\Adapter\Php constructor * diff --git a/src/Config/Adapter/Yaml.php b/src/Config/Adapter/Yaml.php index ab410e43..45161b27 100644 --- a/src/Config/Adapter/Yaml.php +++ b/src/Config/Adapter/Yaml.php @@ -51,6 +51,8 @@ */ class Yaml extends Config { + + /** * Phalcon\Config\Adapter\Yaml constructor * diff --git a/src/Config/Config.php b/src/Config/Config.php index 384ee776..02639e12 100644 --- a/src/Config/Config.php +++ b/src/Config/Config.php @@ -18,7 +18,7 @@ * code. * * ```php - * $config = new \Phalcon\Config( + * $config = new \Phalcon\Config\Config( * [ * "database" => [ * "adapter" => "Mysql", @@ -60,7 +60,7 @@ public function getPathDelimiter(): string * Merges a configuration into the current one * * ```php - * $appConfig = new \Phalcon\Config( + * $appConfig = new \Phalcon\Config\Config( * [ * "database" => [ * "host" => "localhost", diff --git a/src/Config/ConfigFactory.php b/src/Config/ConfigFactory.php index 64896eff..1f54fd30 100644 --- a/src/Config/ConfigFactory.php +++ b/src/Config/ConfigFactory.php @@ -30,6 +30,8 @@ */ class ConfigFactory extends AbstractFactory { + + /** * ConfigFactory constructor. * diff --git a/src/Config/ConfigInterface.php b/src/Config/ConfigInterface.php index 0e3306c4..d9482a81 100644 --- a/src/Config/ConfigInterface.php +++ b/src/Config/ConfigInterface.php @@ -14,10 +14,12 @@ /** * Phalcon\Config\ConfigInterface * - * Interface for Phalcon\Config class + * Interface for Phalcon\Config\Config class */ interface ConfigInterface extends \Phalcon\Support\Collection\CollectionInterface { + + /** * @return string */ diff --git a/src/Config/Exception.php b/src/Config/Exception.php index 4cf841e3..7537265c 100644 --- a/src/Config/Exception.php +++ b/src/Config/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Container/Container.php b/src/Container/Container.php deleted file mode 100644 index 69f0039a..00000000 --- a/src/Container/Container.php +++ /dev/null @@ -1,53 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -namespace Phalcon\Container; - -use Psr\Container\ContainerInterface; -use Phalcon\Di\DiInterface; - -/** - * PSR-11 Wrapper for `Phalcon\Di` - */ -class Container implements \Psr\Container\ContainerInterface -{ - /** - * @var DiInterface - */ - protected $container; - - /** - * Phalcon\Container constructor - * - * @param \Phalcon\Di\DiInterface $container - */ - public function __construct(\Phalcon\Di\DiInterface $container) - { - } - - /** - * Return the service - * - * @param string $name - * @return mixed - */ - public function get(string $name) - { - } - - /** - * Whether a service exists or not in the container - * - * @param string $name - * @return bool - */ - public function has(string $name): bool - { - } -} diff --git a/src/DataMapper/Pdo/Connection.php b/src/DataMapper/Pdo/Connection.php index 646881ef..ae61668f 100644 --- a/src/DataMapper/Pdo/Connection.php +++ b/src/DataMapper/Pdo/Connection.php @@ -24,6 +24,7 @@ */ class Connection extends AbstractConnection { + /** * @var array */ diff --git a/src/DataMapper/Pdo/Connection/AbstractConnection.php b/src/DataMapper/Pdo/Connection/AbstractConnection.php index 7f39ab9e..64b2adab 100644 --- a/src/DataMapper/Pdo/Connection/AbstractConnection.php +++ b/src/DataMapper/Pdo/Connection/AbstractConnection.php @@ -22,6 +22,7 @@ */ abstract class AbstractConnection implements \Phalcon\DataMapper\Pdo\Connection\ConnectionInterface { + /** * @var \PDO */ diff --git a/src/DataMapper/Pdo/Connection/ConnectionInterface.php b/src/DataMapper/Pdo/Connection/ConnectionInterface.php index cb346682..c3c44a53 100644 --- a/src/DataMapper/Pdo/Connection/ConnectionInterface.php +++ b/src/DataMapper/Pdo/Connection/ConnectionInterface.php @@ -24,6 +24,8 @@ */ interface ConnectionInterface extends \Phalcon\DataMapper\Pdo\Connection\PdoInterface { + + /** * Connects to the database. * diff --git a/src/DataMapper/Pdo/Connection/Decorated.php b/src/DataMapper/Pdo/Connection/Decorated.php index 02eb003c..5ee471b8 100644 --- a/src/DataMapper/Pdo/Connection/Decorated.php +++ b/src/DataMapper/Pdo/Connection/Decorated.php @@ -18,6 +18,8 @@ */ class Decorated extends \Phalcon\DataMapper\Pdo\Connection\AbstractConnection { + + /** * * Constructor. diff --git a/src/DataMapper/Pdo/Connection/PdoInterface.php b/src/DataMapper/Pdo/Connection/PdoInterface.php index 14b42be3..a5ca7983 100644 --- a/src/DataMapper/Pdo/Connection/PdoInterface.php +++ b/src/DataMapper/Pdo/Connection/PdoInterface.php @@ -14,6 +14,8 @@ */ interface PdoInterface { + + /** * Begins a transaction. If the profiler is enabled, the operation will * be recorded. diff --git a/src/DataMapper/Pdo/ConnectionLocator.php b/src/DataMapper/Pdo/ConnectionLocator.php index 690b14ea..91432098 100644 --- a/src/DataMapper/Pdo/ConnectionLocator.php +++ b/src/DataMapper/Pdo/ConnectionLocator.php @@ -21,6 +21,7 @@ */ class ConnectionLocator implements \Phalcon\DataMapper\Pdo\ConnectionLocatorInterface { + /** * A default Connection connection factory/instance. * diff --git a/src/DataMapper/Pdo/ConnectionLocatorInterface.php b/src/DataMapper/Pdo/ConnectionLocatorInterface.php index 60bb6f4a..86a3aa03 100644 --- a/src/DataMapper/Pdo/ConnectionLocatorInterface.php +++ b/src/DataMapper/Pdo/ConnectionLocatorInterface.php @@ -16,6 +16,8 @@ */ interface ConnectionLocatorInterface { + + /** * Returns the default connection object. * diff --git a/src/DataMapper/Pdo/Exception/CannotDisconnect.php b/src/DataMapper/Pdo/Exception/CannotDisconnect.php index da2c16a2..ee219064 100644 --- a/src/DataMapper/Pdo/Exception/CannotDisconnect.php +++ b/src/DataMapper/Pdo/Exception/CannotDisconnect.php @@ -15,4 +15,6 @@ */ class CannotDisconnect extends \Phalcon\DataMapper\Pdo\Exception\Exception { + + } diff --git a/src/DataMapper/Pdo/Exception/ConnectionNotFound.php b/src/DataMapper/Pdo/Exception/ConnectionNotFound.php index b0e25934..b7233934 100644 --- a/src/DataMapper/Pdo/Exception/ConnectionNotFound.php +++ b/src/DataMapper/Pdo/Exception/ConnectionNotFound.php @@ -14,4 +14,6 @@ */ class ConnectionNotFound extends \Phalcon\DataMapper\Pdo\Exception\Exception { + + } diff --git a/src/DataMapper/Pdo/Exception/Exception.php b/src/DataMapper/Pdo/Exception/Exception.php index 8994cb20..08c63feb 100644 --- a/src/DataMapper/Pdo/Exception/Exception.php +++ b/src/DataMapper/Pdo/Exception/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/DataMapper/Pdo/Profiler/MemoryLogger.php b/src/DataMapper/Pdo/Profiler/MemoryLogger.php index c5f4194c..242b7bc9 100644 --- a/src/DataMapper/Pdo/Profiler/MemoryLogger.php +++ b/src/DataMapper/Pdo/Profiler/MemoryLogger.php @@ -9,90 +9,140 @@ */ namespace Phalcon\DataMapper\Pdo\Profiler; -use Psr\Log\AbstractLogger; +use Phalcon\Logger\Enum; +use Phalcon\Logger\Adapter\AdapterInterface; +use Phalcon\Logger\Adapter\Noop; +use Phalcon\Logger\LoggerInterface; /** - * A naive memory-based logger. + * A memory-based logger. * * @property array $messages */ -class MemoryLogger extends AbstractLogger +class MemoryLogger implements \Phalcon\Logger\LoggerInterface { + /** * @var array */ protected $messages = []; /** - * Returns the logged messages. - * - * @return array + * @param string $message + * @param mixed[] $context + * @return void */ - public function getMessages(): array + public function alert(string $message, array $context = []): void { } /** * @param string $message * @param mixed[] $context + * @return void */ - public function emergency($message, array $context = []) + public function critical(string $message, array $context = []): void { } /** * @param string $message * @param mixed[] $context + * @return void */ - public function alert($message, array $context = []) + public function debug(string $message, array $context = []): void { } /** * @param string $message * @param mixed[] $context + * @return void */ - public function critical($message, array $context = []) + public function emergency(string $message, array $context = []): void { } /** * @param string $message * @param mixed[] $context + * @return void */ - public function error($message, array $context = []) + public function error(string $message, array $context = []): void { } /** - * @param string $message - * @param mixed[] $context + * Returns an adapter from the stack + * + * @param string $name The name of the adapter + * + * @return AdapterInterface + */ + public function getAdapter(string $name): AdapterInterface + { + } + + /** + * Returns the adapter stack array + * + * @return AdapterInterface[] + */ + public function getAdapters(): array + { + } + + /** + * Returns the log level + * + * @return int + */ + public function getLogLevel(): int + { + } + + /** + * Returns the logged messages. + * + * @return array + */ + public function getMessages(): array + { + } + + /** + * Returns the name of the logger + * + * @return string */ - public function warning($message, array $context = []) + public function getName(): string { } /** * @param string $message * @param mixed[] $context + * @return void */ - public function notice($message, array $context = []) + public function info(string $message, array $context = []): void { } /** * @param string $message * @param mixed[] $context + * @return void */ - public function info($message, array $context = []) + public function notice(string $message, array $context = []): void { } /** * @param string $message * @param mixed[] $context + * @return void */ - public function debug($message, array $context = []) + public function warning(string $message, array $context = []): void { } @@ -102,8 +152,9 @@ public function debug($message, array $context = []) * @param mixed $level * @param string $message * @param array $context + * @return void */ - public function log($level, $message, array $context = []) + public function log($level, string $message, array $context = []): void { } } diff --git a/src/DataMapper/Pdo/Profiler/Profiler.php b/src/DataMapper/Pdo/Profiler/Profiler.php index 776adc71..a2ac777c 100644 --- a/src/DataMapper/Pdo/Profiler/Profiler.php +++ b/src/DataMapper/Pdo/Profiler/Profiler.php @@ -11,8 +11,8 @@ use InvalidArgumentException; use Phalcon\DataMapper\Pdo\Exception\Exception; -use Psr\Log\LoggerInterface; -use Psr\Log\LogLevel; +use Phalcon\Logger\Enum; +use Phalcon\Logger\LoggerInterface; /** * Sends query profiles to a logger. @@ -25,6 +25,7 @@ */ class Profiler implements \Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface { + /** * @var bool */ @@ -55,7 +56,7 @@ class Profiler implements \Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface * * @param LoggerInterface $logger */ - public function __construct(\Psr\Log\LoggerInterface $logger = null) + public function __construct(\Phalcon\Logger\LoggerInterface $logger = null) { } diff --git a/src/DataMapper/Pdo/Profiler/ProfilerInterface.php b/src/DataMapper/Pdo/Profiler/ProfilerInterface.php index 9d43e6fc..b634a1c6 100644 --- a/src/DataMapper/Pdo/Profiler/ProfilerInterface.php +++ b/src/DataMapper/Pdo/Profiler/ProfilerInterface.php @@ -9,13 +9,15 @@ */ namespace Phalcon\DataMapper\Pdo\Profiler; -use Psr\Log\LoggerInterface; +use Phalcon\Logger\LoggerInterface; /** * Interface to send query profiles to a logger. */ interface ProfilerInterface { + + /** * Finishes and logs a profile entry. * diff --git a/src/DataMapper/Query/AbstractConditions.php b/src/DataMapper/Query/AbstractConditions.php index 90b8d3fd..cb60d987 100644 --- a/src/DataMapper/Query/AbstractConditions.php +++ b/src/DataMapper/Query/AbstractConditions.php @@ -14,6 +14,8 @@ */ abstract class AbstractConditions extends \Phalcon\DataMapper\Query\AbstractQuery { + + /** * Sets the `LIMIT` clause * diff --git a/src/DataMapper/Query/AbstractQuery.php b/src/DataMapper/Query/AbstractQuery.php index 712ba4ec..b8e4bd0e 100644 --- a/src/DataMapper/Query/AbstractQuery.php +++ b/src/DataMapper/Query/AbstractQuery.php @@ -20,6 +20,7 @@ */ abstract class AbstractQuery { + /** * @var Bind */ diff --git a/src/DataMapper/Query/Bind.php b/src/DataMapper/Query/Bind.php index 6b681ea0..a857b391 100644 --- a/src/DataMapper/Query/Bind.php +++ b/src/DataMapper/Query/Bind.php @@ -17,6 +17,7 @@ */ class Bind { + /** * @var int */ diff --git a/src/DataMapper/Query/Delete.php b/src/DataMapper/Query/Delete.php index 4f74348d..b94c77db 100644 --- a/src/DataMapper/Query/Delete.php +++ b/src/DataMapper/Query/Delete.php @@ -26,6 +26,8 @@ */ class Delete extends \Phalcon\DataMapper\Query\AbstractConditions { + + /** * Delete constructor. * diff --git a/src/DataMapper/Query/Insert.php b/src/DataMapper/Query/Insert.php index 56f1e831..d76f8f9e 100644 --- a/src/DataMapper/Query/Insert.php +++ b/src/DataMapper/Query/Insert.php @@ -16,6 +16,8 @@ */ class Insert extends \Phalcon\DataMapper\Query\AbstractQuery { + + /** * Insert constructor. * diff --git a/src/DataMapper/Query/QueryFactory.php b/src/DataMapper/Query/QueryFactory.php index 39f15086..2af7bf74 100644 --- a/src/DataMapper/Query/QueryFactory.php +++ b/src/DataMapper/Query/QueryFactory.php @@ -18,6 +18,7 @@ */ class QueryFactory { + /** * @var string */ diff --git a/src/DataMapper/Query/Update.php b/src/DataMapper/Query/Update.php index c2b50a74..a3af4d7f 100644 --- a/src/DataMapper/Query/Update.php +++ b/src/DataMapper/Query/Update.php @@ -16,6 +16,8 @@ */ class Update extends \Phalcon\DataMapper\Query\AbstractConditions { + + /** * Update constructor. * diff --git a/src/Db/AbstractDb.php b/src/Db/AbstractDb.php index bc32871c..121a2fdb 100644 --- a/src/Db/AbstractDb.php +++ b/src/Db/AbstractDb.php @@ -9,7 +9,7 @@ */ namespace Phalcon\Db; -use PDO as Pdo; +use \PDO as Pdo; /** * Phalcon\Db and its related classes provide a simple SQL database interface @@ -56,6 +56,8 @@ */ abstract class AbstractDb { + + /** * Enables/disables options in the Database component * diff --git a/src/Db/Adapter/AbstractAdapter.php b/src/Db/Adapter/AbstractAdapter.php index f22ae6a7..a7d7eb14 100644 --- a/src/Db/Adapter/AbstractAdapter.php +++ b/src/Db/Adapter/AbstractAdapter.php @@ -26,6 +26,7 @@ */ abstract class AbstractAdapter implements \Phalcon\Db\Adapter\AdapterInterface, \Phalcon\Events\EventsAwareInterface { + /** * Connection ID * diff --git a/src/Db/Adapter/AdapterInterface.php b/src/Db/Adapter/AdapterInterface.php index 5441886f..9da34bf0 100644 --- a/src/Db/Adapter/AdapterInterface.php +++ b/src/Db/Adapter/AdapterInterface.php @@ -21,6 +21,8 @@ */ interface AdapterInterface { + + /** * Adds a column to a table * diff --git a/src/Db/Adapter/Pdo/AbstractPdo.php b/src/Db/Adapter/Pdo/AbstractPdo.php index c89ae7b5..aa1aa27e 100644 --- a/src/Db/Adapter/Pdo/AbstractPdo.php +++ b/src/Db/Adapter/Pdo/AbstractPdo.php @@ -36,6 +36,7 @@ */ abstract class AbstractPdo extends AbstractAdapter { + /** * Last affected rows * diff --git a/src/Db/Adapter/Pdo/Mysql.php b/src/Db/Adapter/Pdo/Mysql.php index 1b25259a..52b4d759 100644 --- a/src/Db/Adapter/Pdo/Mysql.php +++ b/src/Db/Adapter/Pdo/Mysql.php @@ -38,6 +38,7 @@ */ class Mysql extends \Phalcon\Db\Adapter\Pdo\AbstractPdo { + /** * @var string */ diff --git a/src/Db/Adapter/Pdo/Postgresql.php b/src/Db/Adapter/Pdo/Postgresql.php index df497c22..70de3da9 100644 --- a/src/Db/Adapter/Pdo/Postgresql.php +++ b/src/Db/Adapter/Pdo/Postgresql.php @@ -38,6 +38,7 @@ */ class Postgresql extends \Phalcon\Db\Adapter\Pdo\AbstractPdo { + /** * @var string */ diff --git a/src/Db/Adapter/Pdo/Sqlite.php b/src/Db/Adapter/Pdo/Sqlite.php index 4f5e826b..070e8fe4 100644 --- a/src/Db/Adapter/Pdo/Sqlite.php +++ b/src/Db/Adapter/Pdo/Sqlite.php @@ -35,6 +35,7 @@ */ class Sqlite extends \Phalcon\Db\Adapter\Pdo\AbstractPdo { + /** * @var string */ diff --git a/src/Db/Adapter/PdoFactory.php b/src/Db/Adapter/PdoFactory.php index 08b391a0..dd3f6fd4 100644 --- a/src/Db/Adapter/PdoFactory.php +++ b/src/Db/Adapter/PdoFactory.php @@ -22,6 +22,8 @@ */ class PdoFactory extends AbstractFactory { + + /** * Constructor * diff --git a/src/Db/ColumnInterface.php b/src/Db/ColumnInterface.php index 105a05aa..b0cd3ecb 100644 --- a/src/Db/ColumnInterface.php +++ b/src/Db/ColumnInterface.php @@ -14,6 +14,8 @@ */ interface ColumnInterface { + + /** * Check whether field absolute to position in table * diff --git a/src/Db/Dialect.php b/src/Db/Dialect.php index 2cfba1a8..362b095f 100644 --- a/src/Db/Dialect.php +++ b/src/Db/Dialect.php @@ -15,6 +15,7 @@ */ abstract class Dialect implements \Phalcon\Db\DialectInterface { + /** * @var string */ diff --git a/src/Db/Dialect/Mysql.php b/src/Db/Dialect/Mysql.php index abc53bb4..03d0f107 100644 --- a/src/Db/Dialect/Mysql.php +++ b/src/Db/Dialect/Mysql.php @@ -22,6 +22,7 @@ */ class Mysql extends Dialect { + /** * @var string */ diff --git a/src/Db/Dialect/Postgresql.php b/src/Db/Dialect/Postgresql.php index a3829440..9835295b 100644 --- a/src/Db/Dialect/Postgresql.php +++ b/src/Db/Dialect/Postgresql.php @@ -22,6 +22,7 @@ */ class Postgresql extends Dialect { + /** * @var string */ diff --git a/src/Db/Dialect/Sqlite.php b/src/Db/Dialect/Sqlite.php index b9d6dbc3..b80ae7c2 100644 --- a/src/Db/Dialect/Sqlite.php +++ b/src/Db/Dialect/Sqlite.php @@ -22,6 +22,7 @@ */ class Sqlite extends Dialect { + /** * @var string */ diff --git a/src/Db/DialectInterface.php b/src/Db/DialectInterface.php index 3bf821df..1509c782 100644 --- a/src/Db/DialectInterface.php +++ b/src/Db/DialectInterface.php @@ -14,6 +14,8 @@ */ interface DialectInterface { + + /** * Generates SQL to add a column to a table * diff --git a/src/Db/Enum.php b/src/Db/Enum.php index 51359cb8..36664e94 100644 --- a/src/Db/Enum.php +++ b/src/Db/Enum.php @@ -47,4 +47,6 @@ class Enum const FETCH_SERIALIZE = 524288; const FETCH_UNIQUE = 196608; + + const FETCH_DEFAULT = 0; } diff --git a/src/Db/Exception.php b/src/Db/Exception.php index f3795cd1..c6bea851 100644 --- a/src/Db/Exception.php +++ b/src/Db/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Db/Index.php b/src/Db/Index.php index 0648c26f..f43ac4a6 100644 --- a/src/Db/Index.php +++ b/src/Db/Index.php @@ -40,6 +40,7 @@ */ class Index implements \Phalcon\Db\IndexInterface { + /** * Index columns * diff --git a/src/Db/IndexInterface.php b/src/Db/IndexInterface.php index 1fab9678..943e0291 100644 --- a/src/Db/IndexInterface.php +++ b/src/Db/IndexInterface.php @@ -14,6 +14,8 @@ */ interface IndexInterface { + + /** * Gets the columns that corresponds the index * diff --git a/src/Db/Profiler.php b/src/Db/Profiler.php index 2ee177fd..313ed717 100644 --- a/src/Db/Profiler.php +++ b/src/Db/Profiler.php @@ -63,6 +63,7 @@ */ class Profiler { + /** * Active Item * diff --git a/src/Db/Profiler/Item.php b/src/Db/Profiler/Item.php index f3a0f6a3..ae93c2eb 100644 --- a/src/Db/Profiler/Item.php +++ b/src/Db/Profiler/Item.php @@ -14,6 +14,7 @@ */ class Item { + /** * Timestamp when the profile ended * diff --git a/src/Db/RawValue.php b/src/Db/RawValue.php index 5002f27e..4f7f1336 100644 --- a/src/Db/RawValue.php +++ b/src/Db/RawValue.php @@ -25,6 +25,7 @@ */ class RawValue { + /** * Raw value without quoting or formatting * diff --git a/src/Db/Reference.php b/src/Db/Reference.php index 5f808416..b0754678 100644 --- a/src/Db/Reference.php +++ b/src/Db/Reference.php @@ -32,6 +32,7 @@ */ class Reference implements \Phalcon\Db\ReferenceInterface { + /** * Local reference columns * diff --git a/src/Db/ReferenceInterface.php b/src/Db/ReferenceInterface.php index f96555c2..df5c1b6e 100644 --- a/src/Db/ReferenceInterface.php +++ b/src/Db/ReferenceInterface.php @@ -14,6 +14,8 @@ */ interface ReferenceInterface { + + /** * Gets local columns which reference is based * diff --git a/src/Db/Result/PdoResult.php b/src/Db/Result/PdoResult.php index 5e205fd1..15002c10 100644 --- a/src/Db/Result/PdoResult.php +++ b/src/Db/Result/PdoResult.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Db\Result; +use Pdo; use Phalcon\Db\Enum; use Phalcon\Db\ResultInterface; use Phalcon\Db\Adapter\AdapterInterface; @@ -30,6 +31,7 @@ */ class PdoResult implements \Phalcon\Db\ResultInterface { + /** * @var array */ @@ -50,7 +52,7 @@ class PdoResult implements \Phalcon\Db\ResultInterface * * @var int */ - protected $fetchMode = Enum::FETCH_OBJ; + protected $fetchMode = Enum::FETCH_DEFAULT; /** * Internal resultset @@ -139,11 +141,11 @@ public function execute(): bool * } * ``` * - * @param mixed $fetchStyle - * @param mixed $cursorOrientation - * @param mixed $cursorOffset + * @param int $fetchStyle + * @param int $cursorOrientation + * @param int $cursorOffset */ - public function fetch($fetchStyle = null, $cursorOrientation = null, $cursorOffset = null) + public function fetch(int $fetchStyle = null, int $cursorOrientation = Pdo::FETCH_ORI_NEXT, int $cursorOffset = 0) { } @@ -160,12 +162,12 @@ public function fetch($fetchStyle = null, $cursorOrientation = null, $cursorOffs * $robots = $result->fetchAll(); * ``` * - * @param mixed $fetchStyle - * @param mixed $fetchArgument - * @param mixed $ctorArgs + * @param int $fetchStyle + * @param int $fetchArgument + * @param int $ctorArgs * @return array */ - public function fetchAll($fetchStyle = null, $fetchArgument = null, $ctorArgs = null): array + public function fetchAll(int $fetchStyle = null, int $fetchArgument = Pdo::FETCH_ORI_NEXT, int $ctorArgs = 0): array { } diff --git a/src/Db/ResultInterface.php b/src/Db/ResultInterface.php index e080f615..0ac4dd34 100644 --- a/src/Db/ResultInterface.php +++ b/src/Db/ResultInterface.php @@ -14,6 +14,8 @@ */ interface ResultInterface { + + /** * Moves internal resultset cursor to another position letting us to fetch a * certain row diff --git a/src/Di/AbstractInjectionAware.php b/src/Di/AbstractInjectionAware.php index 46c19f07..bb281f9f 100644 --- a/src/Di/AbstractInjectionAware.php +++ b/src/Di/AbstractInjectionAware.php @@ -14,6 +14,7 @@ */ abstract class AbstractInjectionAware implements \Phalcon\Di\InjectionAwareInterface { + /** * Dependency Injector * diff --git a/src/Di/Di.php b/src/Di/Di.php index 5458b766..f7aa556a 100644 --- a/src/Di/Di.php +++ b/src/Di/Di.php @@ -18,6 +18,7 @@ use Phalcon\Config\ConfigInterface; use Phalcon\Di\ServiceInterface; use Phalcon\Events\ManagerInterface; +use Phalcon\Di\InitializationAwareInterface; use Phalcon\Di\InjectionAwareInterface; use Phalcon\Di\ServiceProviderInterface; @@ -61,6 +62,7 @@ */ class Di implements \Phalcon\Di\DiInterface { + /** * List of registered services * diff --git a/src/Di/DiInterface.php b/src/Di/DiInterface.php index 45848f56..39eac0dd 100644 --- a/src/Di/DiInterface.php +++ b/src/Di/DiInterface.php @@ -16,6 +16,8 @@ */ interface DiInterface extends \ArrayAccess { + + /** * Attempts to register a service in the services container * Only is successful if a service hasn't been registered previously diff --git a/src/Di/Exception.php b/src/Di/Exception.php index e0bca701..79d32b7e 100644 --- a/src/Di/Exception.php +++ b/src/Di/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Di/Exception/ServiceResolutionException.php b/src/Di/Exception/ServiceResolutionException.php index aceff70c..69e17440 100644 --- a/src/Di/Exception/ServiceResolutionException.php +++ b/src/Di/Exception/ServiceResolutionException.php @@ -14,4 +14,6 @@ */ class ServiceResolutionException extends \Phalcon\Di\Exception { + + } diff --git a/src/Di/FactoryDefault.php b/src/Di/FactoryDefault.php index 2a1b5f18..a25106d6 100644 --- a/src/Di/FactoryDefault.php +++ b/src/Di/FactoryDefault.php @@ -19,6 +19,8 @@ */ class FactoryDefault extends \Phalcon\Di\Di { + + /** * Phalcon\Di\FactoryDefault constructor */ diff --git a/src/Di/FactoryDefault/Cli.php b/src/Di/FactoryDefault/Cli.php index 2e5462b2..d73bfe38 100644 --- a/src/Di/FactoryDefault/Cli.php +++ b/src/Di/FactoryDefault/Cli.php @@ -23,6 +23,8 @@ */ class Cli extends FactoryDefault { + + /** * Phalcon\Di\FactoryDefault\Cli constructor */ diff --git a/src/Di/InitializationAwareInterface.php b/src/Di/InitializationAwareInterface.php new file mode 100644 index 00000000..b544cc64 --- /dev/null +++ b/src/Di/InitializationAwareInterface.php @@ -0,0 +1,20 @@ + + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +namespace Phalcon\Di; + +interface InitializationAwareInterface +{ + + + /** + * @return void + */ + public function initialize(): void; +} diff --git a/src/Di/Injectable.php b/src/Di/Injectable.php index 48fab372..7eba2baa 100644 --- a/src/Di/Injectable.php +++ b/src/Di/Injectable.php @@ -22,14 +22,14 @@ * @property \Phalcon\Http\Request|\Phalcon\Http\RequestInterface $request * @property \Phalcon\Http\Response|\Phalcon\Http\ResponseInterface $response * @property \Phalcon\Http\Response\Cookies|\Phalcon\Http\Response\CookiesInterface $cookies - * @property \Phalcon\Filter $filter + * @property \Phalcon\Filter\Filter $filter * @property \Phalcon\Flash\Direct $flash * @property \Phalcon\Flash\Session $flashSession * @property \Phalcon\Session\ManagerInterface $session * @property \Phalcon\Events\Manager|\Phalcon\Events\ManagerInterface $eventsManager * @property \Phalcon\Db\Adapter\AdapterInterface $db - * @property \Phalcon\Security $security - * @property \Phalcon\Crypt\Crypt|\Phalcon\Crypt\CryptInterface $crypt + * @property \Phalcon\Encryption\Security $security + * @property \Phalcon\Encryption\Crypt|\Phalcon\Encryption\Crypt\CryptInterface $crypt * @property \Phalcon\Tag $tag * @property \Phalcon\Html\Escaper|\Phalcon\Html\Escaper\EscaperInterface $escaper * @property \Phalcon\Annotations\Adapter\Memory|\Phalcon\Annotations\Adapter $annotations @@ -43,6 +43,7 @@ */ abstract class Injectable implements \Phalcon\Di\InjectionAwareInterface { + /** * Dependency Injector * diff --git a/src/Di/InjectionAwareInterface.php b/src/Di/InjectionAwareInterface.php index b2d1a8d3..4d272be5 100644 --- a/src/Di/InjectionAwareInterface.php +++ b/src/Di/InjectionAwareInterface.php @@ -15,6 +15,8 @@ */ interface InjectionAwareInterface { + + /** * Sets the dependency injector * diff --git a/src/Di/Service.php b/src/Di/Service.php index 2c38e312..d22299f3 100644 --- a/src/Di/Service.php +++ b/src/Di/Service.php @@ -27,6 +27,7 @@ */ class Service implements \Phalcon\Di\ServiceInterface { + /** * @var mixed */ diff --git a/src/Di/Service/Builder.php b/src/Di/Service/Builder.php index 98c639e8..80f55f46 100644 --- a/src/Di/Service/Builder.php +++ b/src/Di/Service/Builder.php @@ -19,6 +19,8 @@ */ class Builder { + + /** * Builds a service using a complex service definition * diff --git a/src/Di/ServiceInterface.php b/src/Di/ServiceInterface.php index 7d6db4dc..c65b638d 100644 --- a/src/Di/ServiceInterface.php +++ b/src/Di/ServiceInterface.php @@ -14,6 +14,8 @@ */ interface ServiceInterface { + + /** * Returns the service definition * diff --git a/src/Di/ServiceProviderInterface.php b/src/Di/ServiceProviderInterface.php index 8d59bf14..f3edf091 100644 --- a/src/Di/ServiceProviderInterface.php +++ b/src/Di/ServiceProviderInterface.php @@ -35,6 +35,8 @@ */ interface ServiceProviderInterface { + + /** * Registers a service provider. * diff --git a/src/Dispatcher/AbstractDispatcher.php b/src/Dispatcher/AbstractDispatcher.php index 508773b6..c88dfaa1 100644 --- a/src/Dispatcher/AbstractDispatcher.php +++ b/src/Dispatcher/AbstractDispatcher.php @@ -26,6 +26,7 @@ */ abstract class AbstractDispatcher extends AbstractInjectionAware implements \Phalcon\Dispatcher\DispatcherInterface, \Phalcon\Events\EventsAwareInterface { + /** * @var object|null */ diff --git a/src/Dispatcher/DispatcherInterface.php b/src/Dispatcher/DispatcherInterface.php index 50a875ca..44a04855 100644 --- a/src/Dispatcher/DispatcherInterface.php +++ b/src/Dispatcher/DispatcherInterface.php @@ -14,6 +14,8 @@ */ interface DispatcherInterface { + + /** * Dispatches a handle action taking into account the routing parameters * diff --git a/src/Domain/Payload/Payload.php b/src/Domain/Payload/Payload.php index f065aa83..c3c7fa6c 100644 --- a/src/Domain/Payload/Payload.php +++ b/src/Domain/Payload/Payload.php @@ -16,6 +16,7 @@ */ class Payload implements \Phalcon\Domain\Payload\PayloadInterface { + /** * Exception if any * diff --git a/src/Domain/Payload/PayloadFactory.php b/src/Domain/Payload/PayloadFactory.php index 247ba2ae..dba30508 100644 --- a/src/Domain/Payload/PayloadFactory.php +++ b/src/Domain/Payload/PayloadFactory.php @@ -14,6 +14,8 @@ */ class PayloadFactory { + + /** * Instantiate a new object * diff --git a/src/Domain/Payload/PayloadInterface.php b/src/Domain/Payload/PayloadInterface.php index 8139bc2d..05f8ec7b 100644 --- a/src/Domain/Payload/PayloadInterface.php +++ b/src/Domain/Payload/PayloadInterface.php @@ -14,4 +14,6 @@ */ interface PayloadInterface extends \Phalcon\Domain\Payload\ReadableInterface, \Phalcon\Domain\Payload\WriteableInterface { + + } diff --git a/src/Domain/Payload/ReadableInterface.php b/src/Domain/Payload/ReadableInterface.php index 7521e149..18903c89 100644 --- a/src/Domain/Payload/ReadableInterface.php +++ b/src/Domain/Payload/ReadableInterface.php @@ -16,6 +16,8 @@ */ interface ReadableInterface { + + /** * Gets the potential exception thrown in the domain layer * diff --git a/src/Domain/Payload/WriteableInterface.php b/src/Domain/Payload/WriteableInterface.php index 0261a11e..fb7f3f00 100644 --- a/src/Domain/Payload/WriteableInterface.php +++ b/src/Domain/Payload/WriteableInterface.php @@ -16,6 +16,8 @@ */ interface WriteableInterface { + + /** * Sets an exception produced by the domain layer. * diff --git a/src/Encryption/Crypt.php b/src/Encryption/Crypt.php index a954af7c..810fa4f2 100644 --- a/src/Encryption/Crypt.php +++ b/src/Encryption/Crypt.php @@ -277,6 +277,18 @@ public function getKey(): string { } + /** + * Returns if the input length for decryption is valid or not + * (number of bytes required by the cipher). + * + * @param string $input + * + * @return bool + */ + public function isValidDecryptLength(string $input): bool + { + } + /** * @param string $data * @@ -533,6 +545,14 @@ protected function phpFunctionExists(string $name): bool { } + /** + * @param string $cipher + * @return int|bool + */ + protected function phpOpensslCipherIvLength(string $cipher) + { + } + /** * @param int $length */ diff --git a/src/Encryption/Crypt/CryptInterface.php b/src/Encryption/Crypt/CryptInterface.php index beddc4fa..1848400e 100644 --- a/src/Encryption/Crypt/CryptInterface.php +++ b/src/Encryption/Crypt/CryptInterface.php @@ -14,6 +14,8 @@ */ interface CryptInterface { + + /** * Decrypts a text * diff --git a/src/Encryption/Crypt/Exception/Exception.php b/src/Encryption/Crypt/Exception/Exception.php index 9544e6e4..903e730b 100644 --- a/src/Encryption/Crypt/Exception/Exception.php +++ b/src/Encryption/Crypt/Exception/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Encryption/Crypt/Exception/Mismatch.php b/src/Encryption/Crypt/Exception/Mismatch.php index 98f71f86..0045893f 100644 --- a/src/Encryption/Crypt/Exception/Mismatch.php +++ b/src/Encryption/Crypt/Exception/Mismatch.php @@ -14,4 +14,6 @@ */ class Mismatch extends \Phalcon\Encryption\Crypt\Exception\Exception { + + } diff --git a/src/Encryption/Crypt/PadFactory.php b/src/Encryption/Crypt/PadFactory.php index 19a1e017..0b15bb89 100644 --- a/src/Encryption/Crypt/PadFactory.php +++ b/src/Encryption/Crypt/PadFactory.php @@ -21,6 +21,7 @@ */ class PadFactory extends AbstractFactory { + /** * @var string */ diff --git a/src/Encryption/Crypt/Padding/Ansi.php b/src/Encryption/Crypt/Padding/Ansi.php index 43de11d6..70088300 100644 --- a/src/Encryption/Crypt/Padding/Ansi.php +++ b/src/Encryption/Crypt/Padding/Ansi.php @@ -16,6 +16,8 @@ */ class Ansi implements \Phalcon\Encryption\Crypt\Padding\PadInterface { + + /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Iso10126.php b/src/Encryption/Crypt/Padding/Iso10126.php index 5736ddb5..97688e44 100644 --- a/src/Encryption/Crypt/Padding/Iso10126.php +++ b/src/Encryption/Crypt/Padding/Iso10126.php @@ -16,6 +16,8 @@ */ class Iso10126 implements \Phalcon\Encryption\Crypt\Padding\PadInterface { + + /** * @param string $input * @param int $blockSize diff --git a/src/Encryption/Crypt/Padding/IsoIek.php b/src/Encryption/Crypt/Padding/IsoIek.php index dcdb16c7..e39a3d89 100644 --- a/src/Encryption/Crypt/Padding/IsoIek.php +++ b/src/Encryption/Crypt/Padding/IsoIek.php @@ -16,6 +16,8 @@ */ class IsoIek implements \Phalcon\Encryption\Crypt\Padding\PadInterface { + + /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Noop.php b/src/Encryption/Crypt/Padding/Noop.php index 9001c9d9..43f6783f 100644 --- a/src/Encryption/Crypt/Padding/Noop.php +++ b/src/Encryption/Crypt/Padding/Noop.php @@ -16,6 +16,8 @@ */ class Noop implements \Phalcon\Encryption\Crypt\Padding\PadInterface { + + /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/PadInterface.php b/src/Encryption/Crypt/Padding/PadInterface.php index 41506419..f508ea96 100644 --- a/src/Encryption/Crypt/Padding/PadInterface.php +++ b/src/Encryption/Crypt/Padding/PadInterface.php @@ -14,6 +14,8 @@ */ interface PadInterface { + + /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Pkcs7.php b/src/Encryption/Crypt/Padding/Pkcs7.php index b2cf9d99..9127ce96 100644 --- a/src/Encryption/Crypt/Padding/Pkcs7.php +++ b/src/Encryption/Crypt/Padding/Pkcs7.php @@ -16,6 +16,8 @@ */ class Pkcs7 implements \Phalcon\Encryption\Crypt\Padding\PadInterface { + + /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Space.php b/src/Encryption/Crypt/Padding/Space.php index c8167f6f..1b7d6c21 100644 --- a/src/Encryption/Crypt/Padding/Space.php +++ b/src/Encryption/Crypt/Padding/Space.php @@ -16,6 +16,8 @@ */ class Space implements \Phalcon\Encryption\Crypt\Padding\PadInterface { + + /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Zero.php b/src/Encryption/Crypt/Padding/Zero.php index 02ab2cf1..00198539 100644 --- a/src/Encryption/Crypt/Padding/Zero.php +++ b/src/Encryption/Crypt/Padding/Zero.php @@ -16,6 +16,8 @@ */ class Zero implements \Phalcon\Encryption\Crypt\Padding\PadInterface { + + /** * @param int $paddingSize * diff --git a/src/Encryption/Security/Exception.php b/src/Encryption/Security/Exception.php index 26ff21c0..7b07e254 100644 --- a/src/Encryption/Security/Exception.php +++ b/src/Encryption/Security/Exception.php @@ -16,4 +16,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Encryption/Security/JWT/Builder.php b/src/Encryption/Security/JWT/Builder.php index 66f69c1f..be8b05d9 100644 --- a/src/Encryption/Security/JWT/Builder.php +++ b/src/Encryption/Security/JWT/Builder.php @@ -31,6 +31,7 @@ */ class Builder { + /** * @var CollectionInterface */ diff --git a/src/Encryption/Security/JWT/Exceptions/UnsupportedAlgorithmException.php b/src/Encryption/Security/JWT/Exceptions/UnsupportedAlgorithmException.php index d4fc5841..ab082b5d 100644 --- a/src/Encryption/Security/JWT/Exceptions/UnsupportedAlgorithmException.php +++ b/src/Encryption/Security/JWT/Exceptions/UnsupportedAlgorithmException.php @@ -22,4 +22,6 @@ */ class UnsupportedAlgorithmException extends Exception implements \Throwable { + + } diff --git a/src/Encryption/Security/JWT/Exceptions/ValidatorException.php b/src/Encryption/Security/JWT/Exceptions/ValidatorException.php index 1afe911e..7620b41b 100644 --- a/src/Encryption/Security/JWT/Exceptions/ValidatorException.php +++ b/src/Encryption/Security/JWT/Exceptions/ValidatorException.php @@ -22,4 +22,6 @@ */ class ValidatorException extends Exception implements \Throwable { + + } diff --git a/src/Encryption/Security/JWT/Signer/AbstractSigner.php b/src/Encryption/Security/JWT/Signer/AbstractSigner.php index d8310406..f097e682 100644 --- a/src/Encryption/Security/JWT/Signer/AbstractSigner.php +++ b/src/Encryption/Security/JWT/Signer/AbstractSigner.php @@ -16,6 +16,7 @@ */ abstract class AbstractSigner implements \Phalcon\Encryption\Security\JWT\Signer\SignerInterface { + /** * @var string */ diff --git a/src/Encryption/Security/JWT/Signer/Hmac.php b/src/Encryption/Security/JWT/Signer/Hmac.php index a34c67c5..bd391dfe 100644 --- a/src/Encryption/Security/JWT/Signer/Hmac.php +++ b/src/Encryption/Security/JWT/Signer/Hmac.php @@ -16,6 +16,8 @@ */ class Hmac extends \Phalcon\Encryption\Security\JWT\Signer\AbstractSigner { + + /** * Hmac constructor. * diff --git a/src/Encryption/Security/JWT/Signer/None.php b/src/Encryption/Security/JWT/Signer/None.php index ad6c1bea..409050a3 100644 --- a/src/Encryption/Security/JWT/Signer/None.php +++ b/src/Encryption/Security/JWT/Signer/None.php @@ -14,6 +14,8 @@ */ class None implements \Phalcon\Encryption\Security\JWT\Signer\SignerInterface { + + /** * Return the value that is used for the "alg" header * diff --git a/src/Encryption/Security/JWT/Signer/SignerInterface.php b/src/Encryption/Security/JWT/Signer/SignerInterface.php index b5e582d4..f89090a0 100644 --- a/src/Encryption/Security/JWT/Signer/SignerInterface.php +++ b/src/Encryption/Security/JWT/Signer/SignerInterface.php @@ -19,6 +19,8 @@ */ interface SignerInterface { + + /** * Return the value that is used for the "alg" header * diff --git a/src/Encryption/Security/JWT/Token/AbstractItem.php b/src/Encryption/Security/JWT/Token/AbstractItem.php index 42d4dfff..521ca5a8 100644 --- a/src/Encryption/Security/JWT/Token/AbstractItem.php +++ b/src/Encryption/Security/JWT/Token/AbstractItem.php @@ -16,6 +16,7 @@ */ abstract class AbstractItem { + /** * @var array */ diff --git a/src/Encryption/Security/JWT/Token/Item.php b/src/Encryption/Security/JWT/Token/Item.php index 721e5763..bf0e26d7 100644 --- a/src/Encryption/Security/JWT/Token/Item.php +++ b/src/Encryption/Security/JWT/Token/Item.php @@ -14,6 +14,8 @@ */ class Item extends \Phalcon\Encryption\Security\JWT\Token\AbstractItem { + + /** * Item constructor. * diff --git a/src/Encryption/Security/JWT/Token/Parser.php b/src/Encryption/Security/JWT/Token/Parser.php index c4af8c79..b07d8209 100644 --- a/src/Encryption/Security/JWT/Token/Parser.php +++ b/src/Encryption/Security/JWT/Token/Parser.php @@ -16,6 +16,8 @@ */ class Parser { + + /** * Parse a token and return it * diff --git a/src/Encryption/Security/JWT/Token/Signature.php b/src/Encryption/Security/JWT/Token/Signature.php index fc9663c4..708a6ec9 100644 --- a/src/Encryption/Security/JWT/Token/Signature.php +++ b/src/Encryption/Security/JWT/Token/Signature.php @@ -14,6 +14,8 @@ */ class Signature extends \Phalcon\Encryption\Security\JWT\Token\AbstractItem { + + /** * Signature constructor. * diff --git a/src/Encryption/Security/JWT/Token/Token.php b/src/Encryption/Security/JWT/Token/Token.php index d1089703..515809c1 100644 --- a/src/Encryption/Security/JWT/Token/Token.php +++ b/src/Encryption/Security/JWT/Token/Token.php @@ -20,6 +20,7 @@ */ class Token { + /** * @var Item */ diff --git a/src/Encryption/Security/JWT/Validator.php b/src/Encryption/Security/JWT/Validator.php index c384a4c8..b24d06e0 100644 --- a/src/Encryption/Security/JWT/Validator.php +++ b/src/Encryption/Security/JWT/Validator.php @@ -22,6 +22,7 @@ */ class Validator { + /** * @var int */ diff --git a/src/Encryption/Security/Random.php b/src/Encryption/Security/Random.php index 44078266..5c2005c4 100644 --- a/src/Encryption/Security/Random.php +++ b/src/Encryption/Security/Random.php @@ -76,6 +76,8 @@ */ class Random { + + /** * Generates a random base58 string * diff --git a/src/Events/AbstractEventsAware.php b/src/Events/AbstractEventsAware.php index dcd1f2cb..6ecfb7b9 100644 --- a/src/Events/AbstractEventsAware.php +++ b/src/Events/AbstractEventsAware.php @@ -12,14 +12,13 @@ use Phalcon\Events\ManagerInterface; /** - * Trait EventsAwareTrait - * - * @package Phalcon\Events\Traits + * This abstract class offers access to the events manager * * @property ?ManagerInterface $eventsManager */ abstract class AbstractEventsAware { + /** * @var ManagerInterface|null */ diff --git a/src/Events/Event.php b/src/Events/Event.php index c71e4c6c..2966d672 100644 --- a/src/Events/Event.php +++ b/src/Events/Event.php @@ -10,8 +10,6 @@ namespace Phalcon\Events; /** - * Phalcon\Events\Event - * * This class offers contextual information of a fired event in the * EventsManager * @@ -26,6 +24,7 @@ */ class Event implements \Phalcon\Events\EventInterface { + /** * Is event cancelable? * diff --git a/src/Events/EventInterface.php b/src/Events/EventInterface.php index e80fa941..67f314fa 100644 --- a/src/Events/EventInterface.php +++ b/src/Events/EventInterface.php @@ -10,12 +10,12 @@ namespace Phalcon\Events; /** - * Phalcon\Events\EventInterface - * * Interface for Phalcon\Events\Event class */ interface EventInterface { + + /** * Gets event data * diff --git a/src/Events/EventsAwareInterface.php b/src/Events/EventsAwareInterface.php index c744ac7a..25031892 100644 --- a/src/Events/EventsAwareInterface.php +++ b/src/Events/EventsAwareInterface.php @@ -10,13 +10,13 @@ namespace Phalcon\Events; /** - * Phalcon\Events\EventsAwareInterface - * * This interface must for those classes that accept an EventsManager and * dispatch events */ interface EventsAwareInterface { + + /** * Returns the internal event manager * diff --git a/src/Events/Exception.php b/src/Events/Exception.php index 73eaf4bf..789a5507 100644 --- a/src/Events/Exception.php +++ b/src/Events/Exception.php @@ -10,10 +10,10 @@ namespace Phalcon\Events; /** - * Phalcon\Events\Exception - * * Exceptions thrown in Phalcon\Events will use this class */ class Exception extends \Exception { + + } diff --git a/src/Events/Manager.php b/src/Events/Manager.php index 09a232bf..65b3028b 100644 --- a/src/Events/Manager.php +++ b/src/Events/Manager.php @@ -13,8 +13,6 @@ use SplPriorityQueue; /** - * Phalcon\Events\Manager - * * Phalcon Events Manager, offers an easy way to intercept and manipulate, if * needed, the normal flow of operation. With the EventsManager the developer * can create hooks or plugins that will offer monitoring of data, manipulation, diff --git a/src/Events/ManagerInterface.php b/src/Events/ManagerInterface.php index 6cebc086..bd014aa3 100644 --- a/src/Events/ManagerInterface.php +++ b/src/Events/ManagerInterface.php @@ -10,12 +10,12 @@ namespace Phalcon\Events; /** - * Phalcon\Events\ManagerInterface - * * Interface for Phalcon\Events managers. */ interface ManagerInterface { + + /** * Attach a listener to the events manager * diff --git a/src/Factory/AbstractConfigFactory.php b/src/Factory/AbstractConfigFactory.php index 03b1147c..50e275e9 100644 --- a/src/Factory/AbstractConfigFactory.php +++ b/src/Factory/AbstractConfigFactory.php @@ -21,6 +21,8 @@ */ abstract class AbstractConfigFactory { + + /** * Checks the config if it is a valid object * diff --git a/src/Factory/AbstractFactory.php b/src/Factory/AbstractFactory.php index c7cb8b99..713bd527 100644 --- a/src/Factory/AbstractFactory.php +++ b/src/Factory/AbstractFactory.php @@ -21,6 +21,7 @@ */ abstract class AbstractFactory extends \Phalcon\Factory\AbstractConfigFactory { + /** * @var array */ diff --git a/src/Factory/Exception.php b/src/Factory/Exception.php index 099060ae..8f16c189 100644 --- a/src/Factory/Exception.php +++ b/src/Factory/Exception.php @@ -19,4 +19,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Filter/Exception.php b/src/Filter/Exception.php index 874f8725..5f505950 100644 --- a/src/Filter/Exception.php +++ b/src/Filter/Exception.php @@ -16,4 +16,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Filter/FilterFactory.php b/src/Filter/FilterFactory.php index 1f685c69..d7092ed3 100644 --- a/src/Filter/FilterFactory.php +++ b/src/Filter/FilterFactory.php @@ -18,6 +18,8 @@ */ class FilterFactory { + + /** * Returns a Locator object with all the helpers defined in anonymous * functions diff --git a/src/Filter/FilterInterface.php b/src/Filter/FilterInterface.php index 53036b34..04b2bd44 100644 --- a/src/Filter/FilterInterface.php +++ b/src/Filter/FilterInterface.php @@ -14,6 +14,8 @@ */ interface FilterInterface { + + /** * Sanitizes a value with a specified single or set of sanitizers * diff --git a/src/Filter/Sanitize/AbsInt.php b/src/Filter/Sanitize/AbsInt.php index 6c9e0068..3c243ca1 100644 --- a/src/Filter/Sanitize/AbsInt.php +++ b/src/Filter/Sanitize/AbsInt.php @@ -16,6 +16,8 @@ */ class AbsInt { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/Alnum.php b/src/Filter/Sanitize/Alnum.php index 425c88bd..5f6ed673 100644 --- a/src/Filter/Sanitize/Alnum.php +++ b/src/Filter/Sanitize/Alnum.php @@ -16,6 +16,8 @@ */ class Alnum { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/Alpha.php b/src/Filter/Sanitize/Alpha.php index 61e10edd..708d6739 100644 --- a/src/Filter/Sanitize/Alpha.php +++ b/src/Filter/Sanitize/Alpha.php @@ -16,6 +16,8 @@ */ class Alpha { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/BoolVal.php b/src/Filter/Sanitize/BoolVal.php index f200548d..42f13719 100644 --- a/src/Filter/Sanitize/BoolVal.php +++ b/src/Filter/Sanitize/BoolVal.php @@ -16,6 +16,8 @@ */ class BoolVal { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/Email.php b/src/Filter/Sanitize/Email.php index b3910d0a..8e18e22a 100644 --- a/src/Filter/Sanitize/Email.php +++ b/src/Filter/Sanitize/Email.php @@ -16,6 +16,8 @@ */ class Email { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/FloatVal.php b/src/Filter/Sanitize/FloatVal.php index c274616f..ba56b230 100644 --- a/src/Filter/Sanitize/FloatVal.php +++ b/src/Filter/Sanitize/FloatVal.php @@ -16,6 +16,8 @@ */ class FloatVal { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/IntVal.php b/src/Filter/Sanitize/IntVal.php index b2d02092..f1319e14 100644 --- a/src/Filter/Sanitize/IntVal.php +++ b/src/Filter/Sanitize/IntVal.php @@ -16,6 +16,8 @@ */ class IntVal { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/Lower.php b/src/Filter/Sanitize/Lower.php index ca49ef50..736c36e9 100644 --- a/src/Filter/Sanitize/Lower.php +++ b/src/Filter/Sanitize/Lower.php @@ -16,6 +16,8 @@ */ class Lower { + + /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/LowerFirst.php b/src/Filter/Sanitize/LowerFirst.php index 3468f371..9578464d 100644 --- a/src/Filter/Sanitize/LowerFirst.php +++ b/src/Filter/Sanitize/LowerFirst.php @@ -16,6 +16,8 @@ */ class LowerFirst { + + /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/Regex.php b/src/Filter/Sanitize/Regex.php index 4af35034..259eecbe 100644 --- a/src/Filter/Sanitize/Regex.php +++ b/src/Filter/Sanitize/Regex.php @@ -16,6 +16,8 @@ */ class Regex { + + /** * @param mixed $input * @param mixed $pattern diff --git a/src/Filter/Sanitize/Remove.php b/src/Filter/Sanitize/Remove.php index 02d7d851..09c48d02 100644 --- a/src/Filter/Sanitize/Remove.php +++ b/src/Filter/Sanitize/Remove.php @@ -16,6 +16,8 @@ */ class Remove { + + /** * @param mixed $input * @param mixed $replace diff --git a/src/Filter/Sanitize/Replace.php b/src/Filter/Sanitize/Replace.php index 571bfe09..5994820b 100644 --- a/src/Filter/Sanitize/Replace.php +++ b/src/Filter/Sanitize/Replace.php @@ -16,6 +16,8 @@ */ class Replace { + + /** * @param mixed $input * @param mixed $source diff --git a/src/Filter/Sanitize/Special.php b/src/Filter/Sanitize/Special.php index 9f9f5030..47eb375d 100644 --- a/src/Filter/Sanitize/Special.php +++ b/src/Filter/Sanitize/Special.php @@ -16,6 +16,8 @@ */ class Special { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/SpecialFull.php b/src/Filter/Sanitize/SpecialFull.php index cc12ecf1..6b339b68 100644 --- a/src/Filter/Sanitize/SpecialFull.php +++ b/src/Filter/Sanitize/SpecialFull.php @@ -16,6 +16,8 @@ */ class SpecialFull { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/StringVal.php b/src/Filter/Sanitize/StringVal.php index 841410f5..d56f257f 100644 --- a/src/Filter/Sanitize/StringVal.php +++ b/src/Filter/Sanitize/StringVal.php @@ -10,16 +10,16 @@ namespace Phalcon\Filter\Sanitize; /** - * Phalcon\Filter\Sanitize\String - * * Sanitizes a value to string */ class StringVal { + + /** * @param mixed $input The text to sanitize * - * @return string + * @return string|false */ public function __invoke($input) { diff --git a/src/Filter/Sanitize/Striptags.php b/src/Filter/Sanitize/Striptags.php index 30bec9fe..9fb37ccc 100644 --- a/src/Filter/Sanitize/Striptags.php +++ b/src/Filter/Sanitize/Striptags.php @@ -16,6 +16,8 @@ */ class Striptags { + + /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/Trim.php b/src/Filter/Sanitize/Trim.php index 78a07be5..a88a3176 100644 --- a/src/Filter/Sanitize/Trim.php +++ b/src/Filter/Sanitize/Trim.php @@ -16,6 +16,8 @@ */ class Trim { + + /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/Upper.php b/src/Filter/Sanitize/Upper.php index bad762ca..59b33974 100644 --- a/src/Filter/Sanitize/Upper.php +++ b/src/Filter/Sanitize/Upper.php @@ -16,6 +16,8 @@ */ class Upper { + + /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/UpperFirst.php b/src/Filter/Sanitize/UpperFirst.php index a62da89f..de9fe0c1 100644 --- a/src/Filter/Sanitize/UpperFirst.php +++ b/src/Filter/Sanitize/UpperFirst.php @@ -16,6 +16,8 @@ */ class UpperFirst { + + /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/UpperWords.php b/src/Filter/Sanitize/UpperWords.php index eca1f2e3..f657907e 100644 --- a/src/Filter/Sanitize/UpperWords.php +++ b/src/Filter/Sanitize/UpperWords.php @@ -16,6 +16,8 @@ */ class UpperWords { + + /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/Url.php b/src/Filter/Sanitize/Url.php index 1a115ca8..a9e774fe 100644 --- a/src/Filter/Sanitize/Url.php +++ b/src/Filter/Sanitize/Url.php @@ -16,6 +16,8 @@ */ class Url { + + /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Validation.php b/src/Filter/Validation.php index 99fd4756..4a6b2f9a 100644 --- a/src/Filter/Validation.php +++ b/src/Filter/Validation.php @@ -25,6 +25,7 @@ */ class Validation extends Injectable implements \Phalcon\Filter\Validation\ValidationInterface { + /** * @var array */ diff --git a/src/Filter/Validation/AbstractCombinedFieldsValidator.php b/src/Filter/Validation/AbstractCombinedFieldsValidator.php index 48a74c36..7e43ac39 100644 --- a/src/Filter/Validation/AbstractCombinedFieldsValidator.php +++ b/src/Filter/Validation/AbstractCombinedFieldsValidator.php @@ -14,4 +14,6 @@ */ abstract class AbstractCombinedFieldsValidator extends \Phalcon\Filter\Validation\AbstractValidator { + + } diff --git a/src/Filter/Validation/AbstractValidator.php b/src/Filter/Validation/AbstractValidator.php index bd3178c9..d069acb6 100644 --- a/src/Filter/Validation/AbstractValidator.php +++ b/src/Filter/Validation/AbstractValidator.php @@ -18,6 +18,7 @@ */ abstract class AbstractValidator implements \Phalcon\Filter\Validation\ValidatorInterface { + /** * Message template * @@ -132,9 +133,9 @@ abstract public function validate(\Phalcon\Filter\Validation $validation, $field * Prepares a validation code. * * @param string $field - * @return int|null + * @return int */ - protected function prepareCode(string $field): ?int + protected function prepareCode(string $field): int { } diff --git a/src/Filter/Validation/AbstractValidatorComposite.php b/src/Filter/Validation/AbstractValidatorComposite.php index ba4d7949..09ea11e0 100644 --- a/src/Filter/Validation/AbstractValidatorComposite.php +++ b/src/Filter/Validation/AbstractValidatorComposite.php @@ -16,6 +16,7 @@ */ abstract class AbstractValidatorComposite extends \Phalcon\Filter\Validation\AbstractValidator implements \Phalcon\Filter\Validation\ValidatorCompositeInterface { + /** * @var array */ diff --git a/src/Filter/Validation/Exception.php b/src/Filter/Validation/Exception.php index 363b6954..fad2c65a 100644 --- a/src/Filter/Validation/Exception.php +++ b/src/Filter/Validation/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Filter/Validation/ValidationInterface.php b/src/Filter/Validation/ValidationInterface.php index 9bbf9e15..b4d8d37c 100644 --- a/src/Filter/Validation/ValidationInterface.php +++ b/src/Filter/Validation/ValidationInterface.php @@ -18,6 +18,8 @@ */ interface ValidationInterface { + + /** * Adds a validator to a field * diff --git a/src/Filter/Validation/Validator/Alnum.php b/src/Filter/Validation/Validator/Alnum.php index a1651af4..4db9f760 100644 --- a/src/Filter/Validation/Validator/Alnum.php +++ b/src/Filter/Validation/Validator/Alnum.php @@ -48,6 +48,7 @@ */ class Alnum extends AbstractValidator { + protected $template = 'Field :field must contain only letters and numbers'; /** diff --git a/src/Filter/Validation/Validator/Alpha.php b/src/Filter/Validation/Validator/Alpha.php index 433c9118..ddfab168 100644 --- a/src/Filter/Validation/Validator/Alpha.php +++ b/src/Filter/Validation/Validator/Alpha.php @@ -49,6 +49,7 @@ */ class Alpha extends AbstractValidator { + protected $template = 'Field :field must contain only letters'; /** diff --git a/src/Filter/Validation/Validator/Between.php b/src/Filter/Validation/Validator/Between.php index 5e155628..223813b0 100644 --- a/src/Filter/Validation/Validator/Between.php +++ b/src/Filter/Validation/Validator/Between.php @@ -60,6 +60,7 @@ */ class Between extends AbstractValidator { + protected $template = 'Field :field must be within the range of :min to :max'; /** diff --git a/src/Filter/Validation/Validator/Callback.php b/src/Filter/Validation/Validator/Callback.php index eb83d434..19743053 100644 --- a/src/Filter/Validation/Validator/Callback.php +++ b/src/Filter/Validation/Validator/Callback.php @@ -60,6 +60,7 @@ */ class Callback extends AbstractValidator { + protected $template = 'Field :field must match the callback function'; /** diff --git a/src/Filter/Validation/Validator/Confirmation.php b/src/Filter/Validation/Validator/Confirmation.php index 01b556df..88109fcd 100644 --- a/src/Filter/Validation/Validator/Confirmation.php +++ b/src/Filter/Validation/Validator/Confirmation.php @@ -55,6 +55,7 @@ */ class Confirmation extends AbstractValidator { + protected $template = 'Field :field must be the same as :with'; /** diff --git a/src/Filter/Validation/Validator/CreditCard.php b/src/Filter/Validation/Validator/CreditCard.php index 9d91c50f..63ff7e93 100644 --- a/src/Filter/Validation/Validator/CreditCard.php +++ b/src/Filter/Validation/Validator/CreditCard.php @@ -49,6 +49,7 @@ */ class CreditCard extends AbstractValidator { + protected $template = 'Field :field is not valid for a credit card number'; /** diff --git a/src/Filter/Validation/Validator/Date.php b/src/Filter/Validation/Validator/Date.php index a12493b2..4751aec7 100644 --- a/src/Filter/Validation/Validator/Date.php +++ b/src/Filter/Validation/Validator/Date.php @@ -55,6 +55,7 @@ */ class Date extends AbstractValidator { + protected $template = 'Field :field is not a valid date'; /** diff --git a/src/Filter/Validation/Validator/Digit.php b/src/Filter/Validation/Validator/Digit.php index 91ee1d48..516bc482 100644 --- a/src/Filter/Validation/Validator/Digit.php +++ b/src/Filter/Validation/Validator/Digit.php @@ -49,6 +49,7 @@ */ class Digit extends AbstractValidator { + protected $template = 'Field :field must be numeric'; /** diff --git a/src/Filter/Validation/Validator/Email.php b/src/Filter/Validation/Validator/Email.php index 3d1fbcca..cc70ae16 100644 --- a/src/Filter/Validation/Validator/Email.php +++ b/src/Filter/Validation/Validator/Email.php @@ -49,6 +49,7 @@ */ class Email extends AbstractValidator { + protected $template = 'Field :field must be an email address'; /** diff --git a/src/Filter/Validation/Validator/Exception.php b/src/Filter/Validation/Validator/Exception.php index 68a568c4..803c8444 100644 --- a/src/Filter/Validation/Validator/Exception.php +++ b/src/Filter/Validation/Validator/Exception.php @@ -15,4 +15,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Filter/Validation/Validator/ExclusionIn.php b/src/Filter/Validation/Validator/ExclusionIn.php index 98d36001..10299c15 100644 --- a/src/Filter/Validation/Validator/ExclusionIn.php +++ b/src/Filter/Validation/Validator/ExclusionIn.php @@ -61,6 +61,7 @@ */ class ExclusionIn extends AbstractValidator { + protected $template = 'Field :field must not be a part of list: :domain'; /** diff --git a/src/Filter/Validation/Validator/File.php b/src/Filter/Validation/Validator/File.php index dce30a72..73dce744 100644 --- a/src/Filter/Validation/Validator/File.php +++ b/src/Filter/Validation/Validator/File.php @@ -93,6 +93,8 @@ */ class File extends AbstractValidatorComposite { + + /** * Constructor * diff --git a/src/Filter/Validation/Validator/File/AbstractFile.php b/src/Filter/Validation/Validator/File/AbstractFile.php index ad79d716..db4791b7 100644 --- a/src/Filter/Validation/Validator/File/AbstractFile.php +++ b/src/Filter/Validation/Validator/File/AbstractFile.php @@ -54,6 +54,7 @@ */ abstract class AbstractFile extends AbstractValidator { + /** * Empty is empty * diff --git a/src/Filter/Validation/Validator/File/MimeType.php b/src/Filter/Validation/Validator/File/MimeType.php index beafa328..da9fb26c 100644 --- a/src/Filter/Validation/Validator/File/MimeType.php +++ b/src/Filter/Validation/Validator/File/MimeType.php @@ -63,6 +63,7 @@ */ class MimeType extends \Phalcon\Filter\Validation\Validator\File\AbstractFile { + protected $template = 'File :field must be of type: :types'; /** diff --git a/src/Filter/Validation/Validator/File/Resolution/Equal.php b/src/Filter/Validation/Validator/File/Resolution/Equal.php index 28cd20f0..5263715e 100644 --- a/src/Filter/Validation/Validator/File/Resolution/Equal.php +++ b/src/Filter/Validation/Validator/File/Resolution/Equal.php @@ -54,6 +54,7 @@ */ class Equal extends AbstractFile { + protected $template = 'The resolution of the field :field has to be equal :resolution'; /** diff --git a/src/Filter/Validation/Validator/File/Resolution/Max.php b/src/Filter/Validation/Validator/File/Resolution/Max.php index e0f71278..015795f9 100644 --- a/src/Filter/Validation/Validator/File/Resolution/Max.php +++ b/src/Filter/Validation/Validator/File/Resolution/Max.php @@ -59,6 +59,7 @@ */ class Max extends AbstractFile { + protected $template = 'File :field exceeds the maximum resolution of :resolution'; /** diff --git a/src/Filter/Validation/Validator/File/Resolution/Min.php b/src/Filter/Validation/Validator/File/Resolution/Min.php index 3ce11cee..6beb61f6 100644 --- a/src/Filter/Validation/Validator/File/Resolution/Min.php +++ b/src/Filter/Validation/Validator/File/Resolution/Min.php @@ -59,6 +59,7 @@ */ class Min extends AbstractFile { + protected $template = 'File :field can not have the minimum resolution of :resolution'; /** diff --git a/src/Filter/Validation/Validator/File/Size/Equal.php b/src/Filter/Validation/Validator/File/Size/Equal.php index 36b87a87..6586e6da 100644 --- a/src/Filter/Validation/Validator/File/Size/Equal.php +++ b/src/Filter/Validation/Validator/File/Size/Equal.php @@ -59,6 +59,7 @@ */ class Equal extends AbstractFile { + protected $template = 'File :field does not have the exact :size file size'; /** diff --git a/src/Filter/Validation/Validator/File/Size/Max.php b/src/Filter/Validation/Validator/File/Size/Max.php index 659c4869..c81811b3 100644 --- a/src/Filter/Validation/Validator/File/Size/Max.php +++ b/src/Filter/Validation/Validator/File/Size/Max.php @@ -59,6 +59,7 @@ */ class Max extends AbstractFile { + protected $template = 'File :field exceeds the size of :size'; /** diff --git a/src/Filter/Validation/Validator/File/Size/Min.php b/src/Filter/Validation/Validator/File/Size/Min.php index 147e9e8e..44a5d6c0 100644 --- a/src/Filter/Validation/Validator/File/Size/Min.php +++ b/src/Filter/Validation/Validator/File/Size/Min.php @@ -59,6 +59,7 @@ */ class Min extends AbstractFile { + protected $template = 'File :field can not have the minimum size of :size'; /** diff --git a/src/Filter/Validation/Validator/Identical.php b/src/Filter/Validation/Validator/Identical.php index 611768a5..c8882bfd 100644 --- a/src/Filter/Validation/Validator/Identical.php +++ b/src/Filter/Validation/Validator/Identical.php @@ -54,6 +54,7 @@ */ class Identical extends AbstractValidator { + protected $template = 'Field :field does not have the expected value'; /** diff --git a/src/Filter/Validation/Validator/InclusionIn.php b/src/Filter/Validation/Validator/InclusionIn.php index fcc8e2be..c34ef3da 100644 --- a/src/Filter/Validation/Validator/InclusionIn.php +++ b/src/Filter/Validation/Validator/InclusionIn.php @@ -55,6 +55,7 @@ */ class InclusionIn extends AbstractValidator { + protected $template = 'Field :field must be a part of list: :domain'; /** diff --git a/src/Filter/Validation/Validator/Numericality.php b/src/Filter/Validation/Validator/Numericality.php index a041d072..e6839624 100644 --- a/src/Filter/Validation/Validator/Numericality.php +++ b/src/Filter/Validation/Validator/Numericality.php @@ -49,6 +49,7 @@ */ class Numericality extends AbstractValidator { + protected $template = 'Field :field does not have a valid numeric format'; /** diff --git a/src/Filter/Validation/Validator/PresenceOf.php b/src/Filter/Validation/Validator/PresenceOf.php index fe0b93b7..c4f3fe76 100644 --- a/src/Filter/Validation/Validator/PresenceOf.php +++ b/src/Filter/Validation/Validator/PresenceOf.php @@ -49,6 +49,7 @@ */ class PresenceOf extends AbstractValidator { + protected $template = 'Field :field is required'; /** diff --git a/src/Filter/Validation/Validator/Regex.php b/src/Filter/Validation/Validator/Regex.php index aff37179..f8f60f29 100644 --- a/src/Filter/Validation/Validator/Regex.php +++ b/src/Filter/Validation/Validator/Regex.php @@ -54,6 +54,7 @@ */ class Regex extends AbstractValidator { + protected $template = 'Field :field does not match the required format'; /** diff --git a/src/Filter/Validation/Validator/StringLength.php b/src/Filter/Validation/Validator/StringLength.php index 4e434f44..7b220d90 100644 --- a/src/Filter/Validation/Validator/StringLength.php +++ b/src/Filter/Validation/Validator/StringLength.php @@ -80,6 +80,8 @@ */ class StringLength extends AbstractValidatorComposite { + + /** * Constructor * diff --git a/src/Filter/Validation/Validator/StringLength/Max.php b/src/Filter/Validation/Validator/StringLength/Max.php index 1fda09d9..38f05c3f 100644 --- a/src/Filter/Validation/Validator/StringLength/Max.php +++ b/src/Filter/Validation/Validator/StringLength/Max.php @@ -62,6 +62,7 @@ */ class Max extends AbstractValidator { + protected $template = 'Field :field must not exceed :max characters long'; /** diff --git a/src/Filter/Validation/Validator/StringLength/Min.php b/src/Filter/Validation/Validator/StringLength/Min.php index 5905b0d5..3346a9a9 100644 --- a/src/Filter/Validation/Validator/StringLength/Min.php +++ b/src/Filter/Validation/Validator/StringLength/Min.php @@ -62,6 +62,7 @@ */ class Min extends AbstractValidator { + protected $template = 'Field :field must be at least :min characters long'; /** diff --git a/src/Filter/Validation/Validator/Uniqueness.php b/src/Filter/Validation/Validator/Uniqueness.php index 63a99f3e..b221ac08 100644 --- a/src/Filter/Validation/Validator/Uniqueness.php +++ b/src/Filter/Validation/Validator/Uniqueness.php @@ -88,6 +88,7 @@ */ class Uniqueness extends AbstractCombinedFieldsValidator { + protected $template = 'Field :field must be unique'; /** diff --git a/src/Filter/Validation/Validator/Url.php b/src/Filter/Validation/Validator/Url.php index a1c2ca35..e6f4815f 100644 --- a/src/Filter/Validation/Validator/Url.php +++ b/src/Filter/Validation/Validator/Url.php @@ -49,6 +49,7 @@ */ class Url extends AbstractValidator { + protected $template = 'Field :field must be a url'; /** diff --git a/src/Filter/Validation/ValidatorCompositeInterface.php b/src/Filter/Validation/ValidatorCompositeInterface.php index 3a9601bc..442a88e8 100644 --- a/src/Filter/Validation/ValidatorCompositeInterface.php +++ b/src/Filter/Validation/ValidatorCompositeInterface.php @@ -16,6 +16,8 @@ */ interface ValidatorCompositeInterface { + + /** * Executes the validation * diff --git a/src/Filter/Validation/ValidatorFactory.php b/src/Filter/Validation/ValidatorFactory.php index d3c8e6cc..95ca668e 100644 --- a/src/Filter/Validation/ValidatorFactory.php +++ b/src/Filter/Validation/ValidatorFactory.php @@ -21,6 +21,8 @@ */ class ValidatorFactory extends AbstractFactory { + + /** * TagFactory constructor. * diff --git a/src/Filter/Validation/ValidatorInterface.php b/src/Filter/Validation/ValidatorInterface.php index ace0fba7..2f974b38 100644 --- a/src/Filter/Validation/ValidatorInterface.php +++ b/src/Filter/Validation/ValidatorInterface.php @@ -16,6 +16,8 @@ */ interface ValidatorInterface { + + /** * Returns an option in the validator's options * Returns null if the option hasn't set diff --git a/src/Flash/AbstractFlash.php b/src/Flash/AbstractFlash.php index a9ada14f..e076ae0d 100644 --- a/src/Flash/AbstractFlash.php +++ b/src/Flash/AbstractFlash.php @@ -31,6 +31,7 @@ */ abstract class AbstractFlash extends AbstractInjectionAware implements \Phalcon\Flash\FlashInterface { + /** * @var bool */ diff --git a/src/Flash/Direct.php b/src/Flash/Direct.php index 4c70a180..d7f60f69 100644 --- a/src/Flash/Direct.php +++ b/src/Flash/Direct.php @@ -16,6 +16,8 @@ */ class Direct extends \Phalcon\Flash\AbstractFlash { + + /** * Outputs a message * diff --git a/src/Flash/Exception.php b/src/Flash/Exception.php index eb04b266..4c658105 100644 --- a/src/Flash/Exception.php +++ b/src/Flash/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Flash/FlashInterface.php b/src/Flash/FlashInterface.php index df8d7519..b84df73e 100644 --- a/src/Flash/FlashInterface.php +++ b/src/Flash/FlashInterface.php @@ -16,6 +16,8 @@ */ interface FlashInterface { + + /** * Shows a HTML error message * diff --git a/src/Forms/Element/AbstractElement.php b/src/Forms/Element/AbstractElement.php index 3e132c1f..61be083b 100644 --- a/src/Forms/Element/AbstractElement.php +++ b/src/Forms/Element/AbstractElement.php @@ -25,6 +25,7 @@ */ abstract class AbstractElement implements \Phalcon\Forms\Element\ElementInterface { + /** * @var array */ @@ -81,7 +82,7 @@ abstract class AbstractElement implements \Phalcon\Forms\Element\ElementInterfac protected $value = null; /** - * Phalcon\Forms\Element constructor + * Constructor * * @param string $name Attribute name (value of 'name' attribute of HTML element) * @param array $attributes Additional HTML element attributes diff --git a/src/Forms/Element/Check.php b/src/Forms/Element/Check.php index c5228146..c58abcf1 100644 --- a/src/Forms/Element/Check.php +++ b/src/Forms/Element/Check.php @@ -14,6 +14,7 @@ */ class Check extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Element/Date.php b/src/Forms/Element/Date.php index ae6e4e64..5e203705 100644 --- a/src/Forms/Element/Date.php +++ b/src/Forms/Element/Date.php @@ -16,6 +16,7 @@ */ class Date extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Element/ElementInterface.php b/src/Forms/Element/ElementInterface.php index d5f76076..bb388393 100644 --- a/src/Forms/Element/ElementInterface.php +++ b/src/Forms/Element/ElementInterface.php @@ -19,6 +19,8 @@ */ interface ElementInterface { + + /** * Adds a filter to current list of filters * diff --git a/src/Forms/Element/Email.php b/src/Forms/Element/Email.php index daee63e2..f67a47ae 100644 --- a/src/Forms/Element/Email.php +++ b/src/Forms/Element/Email.php @@ -12,12 +12,11 @@ use Phalcon\Tag; /** - * Phalcon\Forms\Element\Email - * * Component INPUT[type=email] for forms */ class Email extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Element/File.php b/src/Forms/Element/File.php index 54465ef8..3579d7ef 100644 --- a/src/Forms/Element/File.php +++ b/src/Forms/Element/File.php @@ -16,6 +16,7 @@ */ class File extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Element/Hidden.php b/src/Forms/Element/Hidden.php index 45d6b685..d3df78ec 100644 --- a/src/Forms/Element/Hidden.php +++ b/src/Forms/Element/Hidden.php @@ -12,12 +12,11 @@ use Phalcon\Tag; /** - * Phalcon\Forms\Element\Hidden - * * Component INPUT[type=hidden] for forms */ class Hidden extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Element/Numeric.php b/src/Forms/Element/Numeric.php index 93156b17..ee086919 100644 --- a/src/Forms/Element/Numeric.php +++ b/src/Forms/Element/Numeric.php @@ -12,12 +12,11 @@ use Phalcon\Tag; /** - * Phalcon\Forms\Element\Numeric - * * Component INPUT[type=number] for forms */ class Numeric extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Element/Password.php b/src/Forms/Element/Password.php index 135c46e3..891dda62 100644 --- a/src/Forms/Element/Password.php +++ b/src/Forms/Element/Password.php @@ -12,12 +12,11 @@ use Phalcon\Tag; /** - * Phalcon\Forms\Element\Password - * * Component INPUT[type=password] for forms */ class Password extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Element/Radio.php b/src/Forms/Element/Radio.php index c9651a8d..c9a1d079 100644 --- a/src/Forms/Element/Radio.php +++ b/src/Forms/Element/Radio.php @@ -12,12 +12,11 @@ use Phalcon\Tag; /** - * Phalcon\Forms\Element\Radio - * * Component INPUT[type=radio] for forms */ class Radio extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Element/Select.php b/src/Forms/Element/Select.php index e7318325..92b2f9d8 100644 --- a/src/Forms/Element/Select.php +++ b/src/Forms/Element/Select.php @@ -12,19 +12,18 @@ use Phalcon\Tag\Select as SelectTag; /** - * Phalcon\Forms\Element\Select - * * Component SELECT (choice) for forms */ class Select extends \Phalcon\Forms\Element\AbstractElement { + /** * @var object|array|null */ protected $optionsValues = null; /** - * Phalcon\Forms\Element constructor + * Constructor * * @param object|array $options * @param array $attributes diff --git a/src/Forms/Element/Submit.php b/src/Forms/Element/Submit.php index 3c28d277..e1ec6c81 100644 --- a/src/Forms/Element/Submit.php +++ b/src/Forms/Element/Submit.php @@ -16,6 +16,7 @@ */ class Submit extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Element/Text.php b/src/Forms/Element/Text.php index a5b0a732..4ed14d6e 100644 --- a/src/Forms/Element/Text.php +++ b/src/Forms/Element/Text.php @@ -12,10 +12,10 @@ use Phalcon\Forms\Exception; /** - * Phalcon\Forms\Element\Text - * * Component INPUT[type=text] for forms */ class Text extends \Phalcon\Forms\Element\AbstractElement { + + } diff --git a/src/Forms/Element/TextArea.php b/src/Forms/Element/TextArea.php index ada3021e..70d6dbdd 100644 --- a/src/Forms/Element/TextArea.php +++ b/src/Forms/Element/TextArea.php @@ -16,6 +16,7 @@ */ class TextArea extends \Phalcon\Forms\Element\AbstractElement { + /** * @var string */ diff --git a/src/Forms/Exception.php b/src/Forms/Exception.php index 418777a1..3d052029 100644 --- a/src/Forms/Exception.php +++ b/src/Forms/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Forms/Form.php b/src/Forms/Form.php index 984f0abe..af213dd2 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -28,6 +28,7 @@ */ class Form extends Injectable implements \Countable, \Iterator, \Phalcon\Html\Attributes\AttributesInterface { + /** * @var AttributesInterface|null */ @@ -158,7 +159,7 @@ public function count(): int /** * Returns the current element in the iterator * - * @return bool|ElementInterface + * @return mixed */ public function current() { diff --git a/src/Forms/Manager.php b/src/Forms/Manager.php index 1dd8f5f1..be328fb2 100644 --- a/src/Forms/Manager.php +++ b/src/Forms/Manager.php @@ -14,6 +14,7 @@ */ class Manager { + /** * @var array */ diff --git a/src/Html/Attributes.php b/src/Html/Attributes.php index 302410c3..f0c291f6 100644 --- a/src/Html/Attributes.php +++ b/src/Html/Attributes.php @@ -17,6 +17,8 @@ */ class Attributes extends Collection implements \Phalcon\Html\Attributes\RenderInterface { + + /** * Render attributes as HTML attributes * diff --git a/src/Html/Attributes/AttributesInterface.php b/src/Html/Attributes/AttributesInterface.php index 401c1dfc..e925f04d 100644 --- a/src/Html/Attributes/AttributesInterface.php +++ b/src/Html/Attributes/AttributesInterface.php @@ -18,6 +18,8 @@ */ interface AttributesInterface { + + /** * Get Attributes * diff --git a/src/Html/Attributes/RenderInterface.php b/src/Html/Attributes/RenderInterface.php index 2d65a23a..13262086 100644 --- a/src/Html/Attributes/RenderInterface.php +++ b/src/Html/Attributes/RenderInterface.php @@ -16,6 +16,8 @@ */ interface RenderInterface { + + /** * Generate a string represetation * diff --git a/src/Html/Breadcrumbs.php b/src/Html/Breadcrumbs.php index 1bb1a5e2..c5fe9b8d 100644 --- a/src/Html/Breadcrumbs.php +++ b/src/Html/Breadcrumbs.php @@ -20,6 +20,7 @@ */ class Breadcrumbs { + /** * Keeps all the breadcrumbs * diff --git a/src/Html/Escaper.php b/src/Html/Escaper.php index 7dae0398..e500e0a8 100644 --- a/src/Html/Escaper.php +++ b/src/Html/Escaper.php @@ -30,6 +30,7 @@ */ class Escaper implements \Phalcon\Html\Escaper\EscaperInterface { + /** * @var bool */ diff --git a/src/Html/Escaper/EscaperInterface.php b/src/Html/Escaper/EscaperInterface.php index c878bb48..7c913dc9 100644 --- a/src/Html/Escaper/EscaperInterface.php +++ b/src/Html/Escaper/EscaperInterface.php @@ -14,6 +14,8 @@ */ interface EscaperInterface { + + /** * Escapes a HTML attribute string * diff --git a/src/Html/Escaper/Exception.php b/src/Html/Escaper/Exception.php index 0816474d..084e1784 100644 --- a/src/Html/Escaper/Exception.php +++ b/src/Html/Escaper/Exception.php @@ -14,4 +14,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Html/EscaperFactory.php b/src/Html/EscaperFactory.php index c1824f58..0fe176bf 100644 --- a/src/Html/EscaperFactory.php +++ b/src/Html/EscaperFactory.php @@ -14,6 +14,8 @@ */ class EscaperFactory { + + /** * Create a new instance of the object * diff --git a/src/Html/Exception.php b/src/Html/Exception.php index 22ebfabc..9dfb7bf0 100644 --- a/src/Html/Exception.php +++ b/src/Html/Exception.php @@ -16,4 +16,6 @@ */ class Exception extends \Exception { + + } diff --git a/src/Html/Helper/AbstractHelper.php b/src/Html/Helper/AbstractHelper.php index 53ecc8fb..5c9b0051 100644 --- a/src/Html/Helper/AbstractHelper.php +++ b/src/Html/Helper/AbstractHelper.php @@ -20,6 +20,7 @@ */ abstract class AbstractHelper { + /** * @var string */ diff --git a/src/Html/Helper/AbstractList.php b/src/Html/Helper/AbstractList.php index 5f2c247a..09d844d5 100644 --- a/src/Html/Helper/AbstractList.php +++ b/src/Html/Helper/AbstractList.php @@ -16,6 +16,7 @@ */ abstract class AbstractList extends \Phalcon\Html\Helper\AbstractHelper { + /** * @var array */ diff --git a/src/Html/Helper/AbstractSeries.php b/src/Html/Helper/AbstractSeries.php index 3e89c07b..aca8a5e7 100644 --- a/src/Html/Helper/AbstractSeries.php +++ b/src/Html/Helper/AbstractSeries.php @@ -15,6 +15,7 @@ */ abstract class AbstractSeries extends \Phalcon\Html\Helper\AbstractHelper { + /** * @var array */ diff --git a/src/Html/Helper/Anchor.php b/src/Html/Helper/Anchor.php index 343d24a7..6a1ef96f 100644 --- a/src/Html/Helper/Anchor.php +++ b/src/Html/Helper/Anchor.php @@ -16,6 +16,8 @@ */ class Anchor extends \Phalcon\Html\Helper\AbstractHelper { + + /** * Produce a tag * diff --git a/src/Html/Helper/Base.php b/src/Html/Helper/Base.php index 2b7dc357..2395adc0 100644 --- a/src/Html/Helper/Base.php +++ b/src/Html/Helper/Base.php @@ -16,6 +16,8 @@ */ class Base extends \Phalcon\Html\Helper\AbstractHelper { + + /** * Produce a `` tag. * diff --git a/src/Html/Helper/Body.php b/src/Html/Helper/Body.php index 3c899e07..d887130e 100644 --- a/src/Html/Helper/Body.php +++ b/src/Html/Helper/Body.php @@ -16,6 +16,8 @@ */ class Body extends \Phalcon\Html\Helper\AbstractHelper { + + /** * Produce a `` tag. * diff --git a/src/Html/Helper/Button.php b/src/Html/Helper/Button.php index f218f63a..299f5e85 100644 --- a/src/Html/Helper/Button.php +++ b/src/Html/Helper/Button.php @@ -16,6 +16,8 @@ */ class Button extends \Phalcon\Html\Helper\AbstractHelper { + + /** * Produce a `