Skip to content

Commit

Permalink
Add PhpStorm meta file to have better completion in IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
lisachenko committed Jan 12, 2021
1 parent f8ebe58 commit 22a18a7
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .phpstorm.meta.php
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,
);

0 comments on commit 22a18a7

Please sign in to comment.