Skip to content

Commit

Permalink
Bumped stubs 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudboon committed Nov 13, 2020
1 parent 667d723 commit 34a754d
Show file tree
Hide file tree
Showing 211 changed files with 6,165 additions and 214 deletions.
6 changes: 3 additions & 3 deletions plugin/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<idea-plugin version="2">
<id>io.ruudboon.phpstorm-phalcon-4-autocomplete</id>
<name>Phalcon 4 Autocomplete</name>
<version>4.0.6</version>
<version>4.1.0</version>
<vendor email="[email protected]" url="https://github.com/ruudboon/phpstorm-phalcon-4-autocomplete">Ruud Boon</vendor>

<description><![CDATA[
Provides autocomplete functionality for Phalcon 4.
]]></description>

<change-notes><![CDATA[
<h3>4.0.6</h3>
<h3>4.1.0</h3>
<ul>
<li>IDE Stubs for Phalcon 4.0.6</li>
<li>IDE Stubs for Phalcon 4.1.0</li>
</ul>
]]>
</change-notes>
Expand Down
Binary file added plugin/phpstorm-phalcon-4-plugin-v4.1.0.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions plugin/src/Phalcon/Annotations/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;

/**
* Stores the parsed annotations in memory. This adapter is the suitable
* development/testing
Expand Down
4 changes: 4 additions & 0 deletions plugin/src/Phalcon/Annotations/Adapter/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;
use Phalcon\Annotations\Exception;
use RuntimeException;

/**
* Stores the parsed annotations in files. This adapter is suitable for production
*
Expand Down
2 changes: 2 additions & 0 deletions plugin/src/Phalcon/Annotations/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Annotations;

use ReflectionClass;

/**
* Parses docblocks returning an array with the found annotations
*/
Expand Down
3 changes: 2 additions & 1 deletion plugin/src/Phalcon/Application/AbstractApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public function getEventsManager(): ManagerInterface
* Gets the module definition registered in the application via module name
*
* @param string $name
* @return array|object
*
* @return array
*/
public function getModule(string $name): array
{
Expand Down
2 changes: 2 additions & 0 deletions plugin/src/Phalcon/Assets/Filters/None.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Assets\Filters;

use Phalcon\Assets\FilterInterface;

/**
* Returns the content without make any modification to the original source
*/
Expand Down
6 changes: 6 additions & 0 deletions plugin/src/Phalcon/Assets/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
*/
namespace Phalcon\Assets;

use Phalcon\Tag;
use Phalcon\Assets\Asset\Js as AssetJs;
use Phalcon\Assets\Asset\Css as AssetCss;
use Phalcon\Assets\Inline\Css as InlineCss;
use Phalcon\Assets\Inline\Js as InlineJs;
use Phalcon\Di\DiInterface;
use Phalcon\Di\AbstractInjectionAware;

/**
Expand Down
1 change: 1 addition & 0 deletions plugin/src/Phalcon/Cache/Adapter/Libmemcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Libmemcached as StorageLibmemcached;

/**
* Libmemcached adapter
Expand Down
1 change: 1 addition & 0 deletions plugin/src/Phalcon/Cache/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Memory as StorageMemory;

/**
* Memory adapter
Expand Down
1 change: 1 addition & 0 deletions plugin/src/Phalcon/Cache/Adapter/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Redis as StorageRedis;

/**
* Redis adapter
Expand Down
1 change: 1 addition & 0 deletions plugin/src/Phalcon/Cache/Adapter/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Stream as StorageStream;

/**
* Stream adapter
Expand Down
4 changes: 2 additions & 2 deletions plugin/src/Phalcon/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Such implementations are for instance accessing globals `$_GET`, `$_POST`
* etc.
*/
class Collection implements \ArrayAccess, \Countable, \IteratorAggregate, \JsonSerializable, \Serializable
class Collection implements \ArrayAccess, \Phalcon\Collection\CollectionInterface, \Countable, \IteratorAggregate, \JsonSerializable, \Serializable
{
/**
* @var array
Expand Down Expand Up @@ -148,7 +148,7 @@ public function getValues(): array
}

/**
* Get the element from the collection
* Determines whether an element is present in the collection.
*
* @param string $element
* @return bool
Expand Down
104 changes: 104 additions & 0 deletions plugin/src/Phalcon/Collection/CollectionInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<?php

/* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Collection;

/**
* Phalcon\Collection\CollectionInterface
*
* Interface for Phalcon\Collection class
*/
interface CollectionInterface
{

/**
* @param string $element
* @return mixed
*/
public function __get(string $element);

/**
* @param string $element
* @return bool
*/
public function __isset(string $element): bool;

/**
* @param string $element
* @param mixed $value
* @return void
*/
public function __set(string $element, $value);

/**
* @param string $element
* @return void
*/
public function __unset(string $element);

/**
* @return void
*/
public function clear();

/**
* @param string $element
* @param mixed $defaultValue
* @param string $cast
* @return mixed
*/
public function get(string $element, $defaultValue = null, string $cast = null);

/**
* @param bool $insensitive
* @return array
*/
public function getKeys(bool $insensitive = true): array;

/**
* @return array
*/
public function getValues(): array;

/**
* @param string $element
* @return bool
*/
public function has(string $element): bool;

/**
* @param array $data
* @return void
*/
public function init(array $data = array());

/**
* @param string $element
* @return void
*/
public function remove(string $element);

/**
* @param string $element
* @param mixed $value
* @return void
*/
public function set(string $element, $value);

/**
* @return array
*/
public function toArray(): array;

/**
* @param int $options
* @return string
*/
public function toJson(int $options = 79): string;
}
12 changes: 7 additions & 5 deletions plugin/src/Phalcon/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon;

use Phalcon\Config\ConfigInterface;

/**
* `Phalcon\Config` is designed to simplify the access to, and the use of,
* configuration data within applications. It provides a nested object property
Expand All @@ -34,7 +36,7 @@
* );
* ```
*/
class Config extends Collection
class Config extends Collection implements \Phalcon\Config\ConfigInterface
{

const DEFAULT_PATH_DELIMITER = '.';
Expand Down Expand Up @@ -70,9 +72,9 @@ public function getPathDelimiter(): string
* ```
*
* @param mixed $toMerge
* @return Config
* @return ConfigInterface
*/
public function merge($toMerge): Config
public function merge($toMerge): ConfigInterface
{
}

Expand All @@ -96,9 +98,9 @@ public function path(string $path, $defaultValue = null, $delimiter = null)
* Sets the default path delimiter
*
* @param string $delimiter
* @return Config
* @return ConfigInterface
*/
public function setPathDelimiter(string $delimiter = null): Config
public function setPathDelimiter(string $delimiter = null): ConfigInterface
{
}

Expand Down
1 change: 1 addition & 0 deletions plugin/src/Phalcon/Config/Adapter/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Config\Adapter;

use Phalcon\Config;
use Phalcon\Helper\Json as JsonHelper;

/**
* Reads JSON files and converts them to Phalcon\Config objects.
Expand Down
1 change: 1 addition & 0 deletions plugin/src/Phalcon/Config/Adapter/Yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Config\Adapter;

use Phalcon\Config;
use Phalcon\Config\Exception;

/**
* Reads YAML files and converts them to Phalcon\Config objects.
Expand Down
9 changes: 4 additions & 5 deletions plugin/src/Phalcon/Config/ConfigFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
namespace Phalcon\Config;

use Phalcon\Config;
use Phalcon\Factory\AbstractFactory;

/**
Expand Down Expand Up @@ -48,9 +47,9 @@ public function __construct(array $services = array())
* 'mode' => null,
* 'callbacks' => null
* ]
* @return Config
* @return ConfigInterface
*/
public function load($config): Config
public function load($config): ConfigInterface
{
}

Expand All @@ -60,9 +59,9 @@ public function load($config): Config
* @param string $name
* @param string $fileName
* @param mixed $params
* @return Config
* @return ConfigInterface
*/
public function newInstance(string $name, string $fileName, $params = null): Config
public function newInstance(string $name, string $fileName, $params = null): ConfigInterface
{
}

Expand Down
44 changes: 44 additions & 0 deletions plugin/src/Phalcon/Config/ConfigInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php

/* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Config;

/**
* Phalcon\Config\ConfigInterface
*
* Interface for Phalcon\Config class
*/
interface ConfigInterface extends \Phalcon\Collection\CollectionInterface
{

/**
* @return string
*/
public function getPathDelimiter(): string;

/**
* @param mixed $toMerge
* @return ConfigInterface
*/
public function merge($toMerge): ConfigInterface;

/**
* @param string $path
* @param mixed $defaultValue
* @param mixed $delimiter
* @return mixed|null
*/
public function path(string $path, $defaultValue = null, $delimiter = null);

/**
* @param string $delimiter
* @return ConfigInterface
*/
public function setPathDelimiter(string $delimiter = null): ConfigInterface;
}
Loading

0 comments on commit 34a754d

Please sign in to comment.