Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanim committed Jun 21, 2022
2 parents bcb847e + b0ab71c commit bdef56c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ Methods interfaces implementation aggregated in \rocketfellows\TinkoffInvestV1In

For the sake of the interface segregation principle you should inject a specific interface as dependencies, and define the implementation through the container (DI).

## Installation
```shell
composer require rocketfellows/tinkoff-invest-v1-instruments-rest-client
```

## Methods contract definition

Component methods take an array as parameters, and raw arrays also serve as output values.
Expand Down Expand Up @@ -109,4 +114,4 @@ Array

Welcome to pull requests. If there is a major changes, first please open an issue for discussion.

Please make sure to update tests as appropriate.
Please make sure to update tests as appropriate.
40 changes: 20 additions & 20 deletions clover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1654812872">
<project timestamp="1654812872">
<coverage generated="1654895932">
<project timestamp="1654895932">
<file name="/app/src/BondByInterface.php">
<metrics loc="18" ncloc="13" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/>
</file>
Expand All @@ -23,24 +23,24 @@
<class name="rocketfellows\TinkoffInvestV1InstrumentsRestClient\InstrumentsService" namespace="global">
<metrics complexity="8" methods="8" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="16" coveredelements="16"/>
</class>
<line num="29" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="6"/>
<line num="31" type="stmt" count="6"/>
<line num="34" type="method" name="getDividends" visibility="public" complexity="1" crap="1" count="1"/>
<line num="36" type="stmt" count="1"/>
<line num="39" type="method" name="getCountries" visibility="public" complexity="1" crap="1" count="1"/>
<line num="41" type="stmt" count="1"/>
<line num="44" type="method" name="getBondCoupons" visibility="public" complexity="1" crap="1" count="1"/>
<line num="46" type="stmt" count="1"/>
<line num="49" type="method" name="getAssets" visibility="public" complexity="1" crap="1" count="1"/>
<line num="51" type="stmt" count="1"/>
<line num="54" type="method" name="findInstrument" visibility="public" complexity="1" crap="1" count="1"/>
<line num="56" type="stmt" count="1"/>
<line num="59" type="method" name="bondBy" visibility="public" complexity="1" crap="1" count="1"/>
<line num="61" type="stmt" count="1"/>
<line num="64" type="method" name="requestMethod" visibility="private" complexity="1" crap="1" count="6"/>
<line num="66" type="stmt" count="6"/>
<metrics loc="73" ncloc="73" classes="1" methods="8" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="16" coveredelements="16"/>
<line num="26" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="6"/>
<line num="28" type="stmt" count="6"/>
<line num="31" type="method" name="getDividends" visibility="public" complexity="1" crap="1" count="1"/>
<line num="33" type="stmt" count="1"/>
<line num="36" type="method" name="getCountries" visibility="public" complexity="1" crap="1" count="1"/>
<line num="38" type="stmt" count="1"/>
<line num="41" type="method" name="getBondCoupons" visibility="public" complexity="1" crap="1" count="1"/>
<line num="43" type="stmt" count="1"/>
<line num="46" type="method" name="getAssets" visibility="public" complexity="1" crap="1" count="1"/>
<line num="48" type="stmt" count="1"/>
<line num="51" type="method" name="findInstrument" visibility="public" complexity="1" crap="1" count="1"/>
<line num="53" type="stmt" count="1"/>
<line num="56" type="method" name="bondBy" visibility="public" complexity="1" crap="1" count="1"/>
<line num="58" type="stmt" count="1"/>
<line num="61" type="method" name="requestMethod" visibility="private" complexity="1" crap="1" count="6"/>
<line num="63" type="stmt" count="6"/>
<metrics loc="70" ncloc="70" classes="1" methods="8" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="16" coveredelements="16"/>
</file>
<metrics files="7" loc="181" ncloc="151" classes="1" methods="8" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="16" coveredelements="16"/>
<metrics files="7" loc="178" ncloc="148" classes="1" methods="8" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="8" elements="16" coveredelements="16"/>
</project>
</coverage>

0 comments on commit bdef56c

Please sign in to comment.