-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from lisachenko/feature/small-improvements
[Feature] Add PhpStorm meta + make some constructor arguments required
- Loading branch information
Showing
28 changed files
with
65 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
/* | ||
* Protocol FCGI library | ||
* | ||
* @copyright Copyright 2021. Lisachenko Alexander <lisachenko.it@gmail.com> | ||
* This source file is subject to the license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PHPSTORM_META; | ||
|
||
expectedArguments( | ||
\Lisachenko\Protocol\FCGI\Record\BeginRequest::__construct(), | ||
0, | ||
\Lisachenko\Protocol\FCGI::RESPONDER, | ||
\Lisachenko\Protocol\FCGI::AUTHORIZER, | ||
\Lisachenko\Protocol\FCGI::FILTER, | ||
); | ||
|
||
expectedArguments( | ||
\Lisachenko\Protocol\FCGI\Record\BeginRequest::__construct(), | ||
1, | ||
\Lisachenko\Protocol\FCGI::KEEP_CONN, | ||
); | ||
|
||
expectedArguments( | ||
\Lisachenko\Protocol\FCGI\Record\EndRequest::__construct(), | ||
0, | ||
\Lisachenko\Protocol\FCGI::KEEP_CONN, | ||
\Lisachenko\Protocol\FCGI::REQUEST_COMPLETE, | ||
\Lisachenko\Protocol\FCGI::CANT_MPX_CONN, | ||
\Lisachenko\Protocol\FCGI::OVERLOADED, | ||
\Lisachenko\Protocol\FCGI::UNKNOWN_ROLE | ||
); | ||
|
||
expectedReturnValues( | ||
\Lisachenko\Protocol\FCGI\Record::getVersion(), | ||
\Lisachenko\Protocol\FCGI::VERSION_1 | ||
); | ||
|
||
expectedReturnValues( | ||
\Lisachenko\Protocol\FCGI\Record::getType(), | ||
\Lisachenko\Protocol\FCGI::BEGIN_REQUEST, | ||
\Lisachenko\Protocol\FCGI::ABORT_REQUEST, | ||
\Lisachenko\Protocol\FCGI::END_REQUEST, | ||
\Lisachenko\Protocol\FCGI::PARAMS, | ||
\Lisachenko\Protocol\FCGI::STDIN, | ||
\Lisachenko\Protocol\FCGI::STDOUT, | ||
\Lisachenko\Protocol\FCGI::STDERR, | ||
\Lisachenko\Protocol\FCGI::DATA, | ||
\Lisachenko\Protocol\FCGI::GET_VALUES, | ||
\Lisachenko\Protocol\FCGI::GET_VALUES_RESULT, | ||
\Lisachenko\Protocol\FCGI::UNKNOWN_TYPE, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,6 @@ | |
|
||
/** | ||
* FCGI constants. | ||
* | ||
* @author Alexander.Lisachenko | ||
*/ | ||
class FCGI | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,6 @@ | |
|
||
/** | ||
* FCGI record. | ||
* | ||
* @author Alexander.Lisachenko | ||
*/ | ||
class Record | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters