Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .vim/coc-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"diagnostic-languageserver.filetypes": {
"php": ["phpstan"]
},
"diagnostic-languageserver.linters": {
"phpstan": {
"command": "docker",
"debounce": 100,
"rootPatterns": [ "composer.json", "composer.lock", "vendor", ".git" ],
"args": [ "exec", "laradock-php-enum_workspace_1", "composer", "findbugs", "--", "--error-format", "raw", "--no-progress" ],
"offsetLine": 0,
"offsetColumn": 0,
"sourceName": "phpstan",
"formatLines": 1,
"formatPattern": [
"^/var/www/([^:]+):(\\d+):(.*)(\\r|\\n)*$",
{
"sourceName": 1,
"sourceNameFilter": true,
"line": 2,
"message": 3
}
]
}
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"require": {
"php": "^7.3|^8.0",
"ngmy/typed-array": "^0.6.0"
"ngmy/typed-array": "^0.8.0"
},
"autoload": {
"psr-4": {
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 50 additions & 20 deletions docs/api/classes/Ngmy-Enum-Enum.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h3 id="toc">
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Ngmy-Enum-Enum.html#property_names">$names</a>
<span>
&nbsp;: array&lt;string, <abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, string&gt;&gt; </span>
&nbsp;: array&lt;string, array&lt;int, string&gt;&gt; </span>
</dt>
<dd></dd>

Expand Down Expand Up @@ -188,7 +188,7 @@ <h3 id="toc">
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Ngmy-Enum-Enum.html#method_values">values()</a>
<span>
&nbsp;: <abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, static&gt; </span>
&nbsp;: array&lt;int, static&gt; </span>
</dt>
<dd>Returns all constants of this enum type.</dd>

Expand Down Expand Up @@ -278,7 +278,7 @@ <h4 class="phpdocumentor-element__name" id="property_names">

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">array&lt;string, <abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, string&gt;&gt;</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">array&lt;string, array&lt;int, string&gt;&gt;</span>
<span class="phpdocumentor-signature__name">$names</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>

Expand Down Expand Up @@ -322,14 +322,14 @@ <h4 class="phpdocumentor-element__name" id="method___callStatic">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">29</span>
<span class="phpdocumentor-element-found-in__line">31</span>
</aside>

<p class="phpdocumentor-summary">Returns the enum constant of the specified name.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__final">final</span> <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">__callStatic</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$name</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arguments</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
<span class="phpdocumentor-signature__final">final</span> <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">__callStatic</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$name</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arguments</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>

<section class="phpdocumentor-description"></section>

Expand All @@ -344,7 +344,7 @@ <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$arguments</span>
: <span class="phpdocumentor-signature__argument__return-type"><abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, mixed&gt;</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"></section>
Expand All @@ -353,6 +353,21 @@ <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
</dl>


<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">phpstan-param</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">

<section class="phpdocumentor-description"><p>list<mixed> $arguments</p>
</section>

</dd>
</dl>

<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">static</span>
Expand All @@ -374,7 +389,7 @@ <h4 class="phpdocumentor-element__name" id="method___set">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">140</span>
<span class="phpdocumentor-element-found-in__line">146</span>
</aside>


Expand Down Expand Up @@ -425,7 +440,7 @@ <h4 class="phpdocumentor-element__name" id="method___toString">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">100</span>
<span class="phpdocumentor-element-found-in__line">106</span>
</aside>

<p class="phpdocumentor-summary">Returns the name of this enum constant, as contained in the declaration.</p>
Expand Down Expand Up @@ -459,7 +474,7 @@ <h4 class="phpdocumentor-element__name" id="method___wakeup">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">145</span>
<span class="phpdocumentor-element-found-in__line">151</span>
</aside>


Expand Down Expand Up @@ -491,7 +506,7 @@ <h4 class="phpdocumentor-element__name" id="method_equals">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">119</span>
<span class="phpdocumentor-element-found-in__line">125</span>
</aside>

<p class="phpdocumentor-summary">Returns true if the specified object is equal to this enum constant.</p>
Expand Down Expand Up @@ -535,7 +550,7 @@ <h4 class="phpdocumentor-element__name" id="method_hashCode">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">127</span>
<span class="phpdocumentor-element-found-in__line">133</span>
</aside>

<p class="phpdocumentor-summary">Returns the hash code for this enum constant</p>
Expand Down Expand Up @@ -569,7 +584,7 @@ <h4 class="phpdocumentor-element__name" id="method_name">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">92</span>
<span class="phpdocumentor-element-found-in__line">98</span>
</aside>

<p class="phpdocumentor-summary">Returns the name of this enum constant, exactly as declared in its enum declaration.</p>
Expand Down Expand Up @@ -603,7 +618,7 @@ <h4 class="phpdocumentor-element__name" id="method_ordinal">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">110</span>
<span class="phpdocumentor-element-found-in__line">116</span>
</aside>

<p class="phpdocumentor-summary">Returns the ordinal of this enum constant.</p>
Expand Down Expand Up @@ -638,7 +653,7 @@ <h4 class="phpdocumentor-element__name" id="method_valueOf">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">39</span>
<span class="phpdocumentor-element-found-in__line">41</span>
</aside>

<p class="phpdocumentor-summary">Returns the enum constant of the specified name.</p>
Expand Down Expand Up @@ -682,22 +697,37 @@ <h4 class="phpdocumentor-element__name" id="method_values">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">49</span>
<span class="phpdocumentor-element-found-in__line">53</span>
</aside>

<p class="phpdocumentor-summary">Returns all constants of this enum type.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__final">final</span> <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">values</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, static&gt;</span></code>
<span class="phpdocumentor-signature__final">final</span> <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">values</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;int, static&gt;</span></code>

<section class="phpdocumentor-description"></section>



<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">phpstan-return</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">

<section class="phpdocumentor-description"><p>list<static></p>
</section>

</dd>
</dl>

<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, static&gt;</span>
<span class="phpdocumentor-signature__response_type">array&lt;int, static&gt;</span>
&mdash;
<section class="phpdocumentor-description"></section>

Expand All @@ -716,7 +746,7 @@ <h4 class="phpdocumentor-element__name" id="method___clone">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">153</span>
<span class="phpdocumentor-element-found-in__line">159</span>
</aside>


Expand Down Expand Up @@ -749,7 +779,7 @@ <h4 class="phpdocumentor-element__name" id="method___construct">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">168</span>
<span class="phpdocumentor-element-found-in__line">174</span>
</aside>


Expand Down Expand Up @@ -791,7 +821,7 @@ <h4 class="phpdocumentor-element__name" id="method_validateInheritance">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Enum.php"><a href="files/src-enum.html"><abbr title="src/Enum.php">Enum.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">158</span>
<span class="phpdocumentor-element-found-in__line">164</span>
</aside>


Expand Down
6 changes: 3 additions & 3 deletions docs/api/classes/Ngmy-Enum-EnumSet.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ <h3 id="toc">
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Ngmy-Enum-EnumSet.html#method_toArray">toArray()</a>
<span>
&nbsp;: <abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, <a href="classes/Ngmy-Enum-Enum.html"><abbr title="\Ngmy\Enum\Enum">Enum</abbr></a>&gt; </span>
&nbsp;: array&lt;int, <a href="classes/Ngmy-Enum-Enum.html"><abbr title="\Ngmy\Enum\Enum">Enum</abbr></a>&gt; </span>
</dt>
<dd>Gets the enum set of values as a plain array.</dd>

Expand Down Expand Up @@ -1120,7 +1120,7 @@ <h4 class="phpdocumentor-element__name" id="method_toArray">

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">toArray</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, <a href="classes/Ngmy-Enum-Enum.html"><abbr title="\Ngmy\Enum\Enum">Enum</abbr></a>&gt;</span></code>
<span class="phpdocumentor-signature__name">toArray</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;int, <a href="classes/Ngmy-Enum-Enum.html"><abbr title="\Ngmy\Enum\Enum">Enum</abbr></a>&gt;</span></code>

<section class="phpdocumentor-description"></section>

Expand All @@ -1143,7 +1143,7 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
</dl>

<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><abbr title="\Ngmy\Enum\list">list</abbr>&lt;string|int, <a href="classes/Ngmy-Enum-Enum.html"><abbr title="\Ngmy\Enum\Enum">Enum</abbr></a>&gt;</span>
<span class="phpdocumentor-signature__response_type">array&lt;int, <a href="classes/Ngmy-Enum-Enum.html"><abbr title="\Ngmy\Enum\Enum">Enum</abbr></a>&gt;</span>
&mdash;
<section class="phpdocumentor-description"></section>

Expand Down
Loading