Skip to content

Commit 34a754d

Browse files
committed
Bumped stubs 4.1.0
1 parent 667d723 commit 34a754d

File tree

211 files changed

+6165
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+6165
-214
lines changed

plugin/META-INF/plugin.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<idea-plugin version="2">
22
<id>io.ruudboon.phpstorm-phalcon-4-autocomplete</id>
33
<name>Phalcon 4 Autocomplete</name>
4-
<version>4.0.6</version>
4+
<version>4.1.0</version>
55
<vendor email="[email protected]" url="https://github.com/ruudboon/phpstorm-phalcon-4-autocomplete">Ruud Boon</vendor>
66

77
<description><![CDATA[
88
Provides autocomplete functionality for Phalcon 4.
99
]]></description>
1010

1111
<change-notes><![CDATA[
12-
<h3>4.0.6</h3>
12+
<h3>4.1.0</h3>
1313
<ul>
14-
<li>IDE Stubs for Phalcon 4.0.6</li>
14+
<li>IDE Stubs for Phalcon 4.1.0</li>
1515
</ul>
1616
]]>
1717
</change-notes>
500 KB
Binary file not shown.

plugin/src/Phalcon/Annotations/Adapter/Memory.php

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010
namespace Phalcon\Annotations\Adapter;
1111

12+
use Phalcon\Annotations\Reflection;
13+
1214
/**
1315
* Stores the parsed annotations in memory. This adapter is the suitable
1416
* development/testing

plugin/src/Phalcon/Annotations/Adapter/Stream.php

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
*/
1010
namespace Phalcon\Annotations\Adapter;
1111

12+
use Phalcon\Annotations\Reflection;
13+
use Phalcon\Annotations\Exception;
14+
use RuntimeException;
15+
1216
/**
1317
* Stores the parsed annotations in files. This adapter is suitable for production
1418
*

plugin/src/Phalcon/Annotations/Reader.php

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010
namespace Phalcon\Annotations;
1111

12+
use ReflectionClass;
13+
1214
/**
1315
* Parses docblocks returning an array with the found annotations
1416
*/

plugin/src/Phalcon/Application/AbstractApplication.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public function getEventsManager(): ManagerInterface
7070
* Gets the module definition registered in the application via module name
7171
*
7272
* @param string $name
73-
* @return array|object
73+
*
74+
* @return array
7475
*/
7576
public function getModule(string $name): array
7677
{

plugin/src/Phalcon/Assets/Filters/None.php

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010
namespace Phalcon\Assets\Filters;
1111

12+
use Phalcon\Assets\FilterInterface;
13+
1214
/**
1315
* Returns the content without make any modification to the original source
1416
*/

plugin/src/Phalcon/Assets/Manager.php

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
*/
1010
namespace Phalcon\Assets;
1111

12+
use Phalcon\Tag;
13+
use Phalcon\Assets\Asset\Js as AssetJs;
14+
use Phalcon\Assets\Asset\Css as AssetCss;
15+
use Phalcon\Assets\Inline\Css as InlineCss;
16+
use Phalcon\Assets\Inline\Js as InlineJs;
17+
use Phalcon\Di\DiInterface;
1218
use Phalcon\Di\AbstractInjectionAware;
1319

1420
/**

plugin/src/Phalcon/Cache/Adapter/Libmemcached.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Phalcon\Cache\Adapter;
1111

1212
use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
13+
use Phalcon\Storage\Adapter\Libmemcached as StorageLibmemcached;
1314

1415
/**
1516
* Libmemcached adapter

plugin/src/Phalcon/Cache/Adapter/Memory.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Phalcon\Cache\Adapter;
1111

1212
use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
13+
use Phalcon\Storage\Adapter\Memory as StorageMemory;
1314

1415
/**
1516
* Memory adapter

plugin/src/Phalcon/Cache/Adapter/Redis.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Phalcon\Cache\Adapter;
1111

1212
use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
13+
use Phalcon\Storage\Adapter\Redis as StorageRedis;
1314

1415
/**
1516
* Redis adapter

plugin/src/Phalcon/Cache/Adapter/Stream.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Phalcon\Cache\Adapter;
1111

1212
use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
13+
use Phalcon\Storage\Adapter\Stream as StorageStream;
1314

1415
/**
1516
* Stream adapter

plugin/src/Phalcon/Collection.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Such implementations are for instance accessing globals `$_GET`, `$_POST`
2424
* etc.
2525
*/
26-
class Collection implements \ArrayAccess, \Countable, \IteratorAggregate, \JsonSerializable, \Serializable
26+
class Collection implements \ArrayAccess, \Phalcon\Collection\CollectionInterface, \Countable, \IteratorAggregate, \JsonSerializable, \Serializable
2727
{
2828
/**
2929
* @var array
@@ -148,7 +148,7 @@ public function getValues(): array
148148
}
149149

150150
/**
151-
* Get the element from the collection
151+
* Determines whether an element is present in the collection.
152152
*
153153
* @param string $element
154154
* @return bool
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?php
2+
3+
/* This file is part of the Phalcon Framework.
4+
*
5+
* (c) Phalcon Team <[email protected]>
6+
*
7+
* For the full copyright and license information, please view the LICENSE.txt
8+
* file that was distributed with this source code.
9+
*/
10+
namespace Phalcon\Collection;
11+
12+
/**
13+
* Phalcon\Collection\CollectionInterface
14+
*
15+
* Interface for Phalcon\Collection class
16+
*/
17+
interface CollectionInterface
18+
{
19+
20+
/**
21+
* @param string $element
22+
* @return mixed
23+
*/
24+
public function __get(string $element);
25+
26+
/**
27+
* @param string $element
28+
* @return bool
29+
*/
30+
public function __isset(string $element): bool;
31+
32+
/**
33+
* @param string $element
34+
* @param mixed $value
35+
* @return void
36+
*/
37+
public function __set(string $element, $value);
38+
39+
/**
40+
* @param string $element
41+
* @return void
42+
*/
43+
public function __unset(string $element);
44+
45+
/**
46+
* @return void
47+
*/
48+
public function clear();
49+
50+
/**
51+
* @param string $element
52+
* @param mixed $defaultValue
53+
* @param string $cast
54+
* @return mixed
55+
*/
56+
public function get(string $element, $defaultValue = null, string $cast = null);
57+
58+
/**
59+
* @param bool $insensitive
60+
* @return array
61+
*/
62+
public function getKeys(bool $insensitive = true): array;
63+
64+
/**
65+
* @return array
66+
*/
67+
public function getValues(): array;
68+
69+
/**
70+
* @param string $element
71+
* @return bool
72+
*/
73+
public function has(string $element): bool;
74+
75+
/**
76+
* @param array $data
77+
* @return void
78+
*/
79+
public function init(array $data = array());
80+
81+
/**
82+
* @param string $element
83+
* @return void
84+
*/
85+
public function remove(string $element);
86+
87+
/**
88+
* @param string $element
89+
* @param mixed $value
90+
* @return void
91+
*/
92+
public function set(string $element, $value);
93+
94+
/**
95+
* @return array
96+
*/
97+
public function toArray(): array;
98+
99+
/**
100+
* @param int $options
101+
* @return string
102+
*/
103+
public function toJson(int $options = 79): string;
104+
}

plugin/src/Phalcon/Config.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010
namespace Phalcon;
1111

12+
use Phalcon\Config\ConfigInterface;
13+
1214
/**
1315
* `Phalcon\Config` is designed to simplify the access to, and the use of,
1416
* configuration data within applications. It provides a nested object property
@@ -34,7 +36,7 @@
3436
* );
3537
* ```
3638
*/
37-
class Config extends Collection
39+
class Config extends Collection implements \Phalcon\Config\ConfigInterface
3840
{
3941

4042
const DEFAULT_PATH_DELIMITER = '.';
@@ -70,9 +72,9 @@ public function getPathDelimiter(): string
7072
* ```
7173
*
7274
* @param mixed $toMerge
73-
* @return Config
75+
* @return ConfigInterface
7476
*/
75-
public function merge($toMerge): Config
77+
public function merge($toMerge): ConfigInterface
7678
{
7779
}
7880

@@ -96,9 +98,9 @@ public function path(string $path, $defaultValue = null, $delimiter = null)
9698
* Sets the default path delimiter
9799
*
98100
* @param string $delimiter
99-
* @return Config
101+
* @return ConfigInterface
100102
*/
101-
public function setPathDelimiter(string $delimiter = null): Config
103+
public function setPathDelimiter(string $delimiter = null): ConfigInterface
102104
{
103105
}
104106

plugin/src/Phalcon/Config/Adapter/Json.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Phalcon\Config\Adapter;
1111

1212
use Phalcon\Config;
13+
use Phalcon\Helper\Json as JsonHelper;
1314

1415
/**
1516
* Reads JSON files and converts them to Phalcon\Config objects.

plugin/src/Phalcon/Config/Adapter/Yaml.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace Phalcon\Config\Adapter;
1111

1212
use Phalcon\Config;
13+
use Phalcon\Config\Exception;
1314

1415
/**
1516
* Reads YAML files and converts them to Phalcon\Config objects.

plugin/src/Phalcon/Config/ConfigFactory.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
namespace Phalcon\Config;
1111

12-
use Phalcon\Config;
1312
use Phalcon\Factory\AbstractFactory;
1413

1514
/**
@@ -48,9 +47,9 @@ public function __construct(array $services = array())
4847
* 'mode' => null,
4948
* 'callbacks' => null
5049
* ]
51-
* @return Config
50+
* @return ConfigInterface
5251
*/
53-
public function load($config): Config
52+
public function load($config): ConfigInterface
5453
{
5554
}
5655

@@ -60,9 +59,9 @@ public function load($config): Config
6059
* @param string $name
6160
* @param string $fileName
6261
* @param mixed $params
63-
* @return Config
62+
* @return ConfigInterface
6463
*/
65-
public function newInstance(string $name, string $fileName, $params = null): Config
64+
public function newInstance(string $name, string $fileName, $params = null): ConfigInterface
6665
{
6766
}
6867

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
3+
/* This file is part of the Phalcon Framework.
4+
*
5+
* (c) Phalcon Team <[email protected]>
6+
*
7+
* For the full copyright and license information, please view the LICENSE.txt
8+
* file that was distributed with this source code.
9+
*/
10+
namespace Phalcon\Config;
11+
12+
/**
13+
* Phalcon\Config\ConfigInterface
14+
*
15+
* Interface for Phalcon\Config class
16+
*/
17+
interface ConfigInterface extends \Phalcon\Collection\CollectionInterface
18+
{
19+
20+
/**
21+
* @return string
22+
*/
23+
public function getPathDelimiter(): string;
24+
25+
/**
26+
* @param mixed $toMerge
27+
* @return ConfigInterface
28+
*/
29+
public function merge($toMerge): ConfigInterface;
30+
31+
/**
32+
* @param string $path
33+
* @param mixed $defaultValue
34+
* @param mixed $delimiter
35+
* @return mixed|null
36+
*/
37+
public function path(string $path, $defaultValue = null, $delimiter = null);
38+
39+
/**
40+
* @param string $delimiter
41+
* @return ConfigInterface
42+
*/
43+
public function setPathDelimiter(string $delimiter = null): ConfigInterface;
44+
}

0 commit comments

Comments
 (0)