From 22a18a79db39209d1c5e8ad4a1f63a9f94dfce51 Mon Sep 17 00:00:00 2001 From: Lisachenko Alexander Date: Tue, 12 Jan 2021 16:34:05 +0600 Subject: [PATCH] Add PhpStorm meta file to have better completion in IDE --- .phpstorm.meta.php | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .phpstorm.meta.php diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php new file mode 100644 index 0000000..39d33e1 --- /dev/null +++ b/.phpstorm.meta.php @@ -0,0 +1,56 @@ + + * 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, +);