@@ -75,7 +75,7 @@ |
||
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Validation constraints for fields |
78 | - * @return array |
|
78 | + * @return Assert\Collection |
|
79 | 79 | */ |
80 | 80 | public function getValidationConstraints() |
81 | 81 | { |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | private $certificate; |
13 | 13 | |
14 | 14 | /** |
15 | - * @param $certificate string base64_encode(certificate) |
|
15 | + * @param string $certificate string base64_encode(certificate) |
|
16 | 16 | */ |
17 | 17 | public function __construct($certificate) |
18 | 18 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Result object for this query result |
44 | - * @return MobileResult |
|
44 | + * @return ScResult |
|
45 | 45 | */ |
46 | 46 | public function createResult() |
47 | 47 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Validation constraints for fields |
53 | - * @return array |
|
53 | + * @return Assert\Collection |
|
54 | 54 | */ |
55 | 55 | public function getValidationConstraints() |
56 | 56 | { |
@@ -15,6 +15,10 @@ discard block |
||
15 | 15 | /** @var string User signed value */ |
16 | 16 | private $signatureValue; |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $token |
|
20 | + * @param string $signatureValue |
|
21 | + */ |
|
18 | 22 | public function __construct($token, $signatureValue) |
19 | 23 | { |
20 | 24 | $this->token = $token; |
@@ -53,7 +57,7 @@ discard block |
||
53 | 57 | |
54 | 58 | /** |
55 | 59 | * Validation constraints for fields |
56 | - * @return array |
|
60 | + * @return Assert\Collection |
|
57 | 61 | */ |
58 | 62 | public function getValidationConstraints() |
59 | 63 | { |
@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | private $signatureValue; |
17 | 17 | |
18 | 18 | /** |
19 | - * @param $token string Session token received from /sc/prepare call |
|
20 | - * @param $signatureValue string Signature value |
|
19 | + * @param string $token string Session token received from /sc/prepare call |
|
20 | + * @param string $signatureValue string Signature value |
|
21 | 21 | */ |
22 | 22 | public function __construct($token, $signatureValue) |
23 | 23 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Result object for this query result |
58 | - * @return MobileStatusResult |
|
58 | + * @return ScResult |
|
59 | 59 | */ |
60 | 60 | public function createResult() |
61 | 61 | { |
@@ -28,10 +28,10 @@ discard block |
||
28 | 28 | private $document; |
29 | 29 | |
30 | 30 | /** |
31 | - * @param $certificate string base64_encode(certificate) |
|
32 | - * @param $type string document type |
|
33 | - * @param $timestamp boolean add document timestamp |
|
34 | - * @param $language string language LT|EN |
|
31 | + * @param null|string $certificate string base64_encode(certificate) |
|
32 | + * @param null|string $type string document type |
|
33 | + * @param null|false $timestamp boolean add document timestamp |
|
34 | + * @param null|string $language string language LT|EN |
|
35 | 35 | * @param $document array document to be signed |
36 | 36 | */ |
37 | 37 | public function __construct($certificate, $type, $timestamp, $language, array $document) |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Validation constraints for fields |
87 | - * @return array |
|
87 | + * @return Assert\Collection |
|
88 | 88 | */ |
89 | 89 | public function getValidationConstraints() |
90 | 90 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use GuzzleHttp\Exception\ClientException; |
5 | 5 | use Isign\Http\GuzzleClientAdapter; |
6 | -use Psr\Log\LoggerAwareInterface; |
|
7 | 6 | |
8 | 7 | class GuzzleClientAdapterTest extends \PHPUnit_Framework_TestCase |
9 | 8 | { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** @var string Possible values: pdf, adoc, mdoc */ |
22 | 22 | private $type; |
23 | 23 | |
24 | - /** @var string file path */ |
|
24 | + /** @var string file path */ |
|
25 | 25 | private $path; |
26 | 26 | |
27 | 27 | /** |
@@ -75,7 +75,7 @@ |
||
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Validation constraints for fields |
78 | - * @return array |
|
78 | + * @return Assert\Collection |
|
79 | 79 | */ |
80 | 80 | public function getValidationConstraints() |
81 | 81 | { |
@@ -88,7 +88,7 @@ |
||
88 | 88 | 'reason' => 'Dokumento asirašymas', |
89 | 89 | 'location' => 'Vilnius', |
90 | 90 | 'files' => [ |
91 | - __DIR__ . '/../data/document.pdf', |
|
91 | + __DIR__ . '/../data/document.pdf', |
|
92 | 92 | ] |
93 | 93 | ]; |
94 | 94 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | 'reason' => 'Dokumento asirašymas', |
89 | 89 | 'location' => 'Vilnius', |
90 | 90 | 'files' => [ |
91 | - __DIR__ . '/../data/document.pdf', |
|
91 | + __DIR__.'/../data/document.pdf', |
|
92 | 92 | ] |
93 | 93 | ]; |
94 | 94 | } |
@@ -10,8 +10,8 @@ |
||
10 | 10 | class ScSignTest extends TestCase |
11 | 11 | { |
12 | 12 | /** |
13 | - * @expectedException Isign\Exception\QueryValidator |
|
14 | - */ |
|
13 | + * @expectedException Isign\Exception\QueryValidator |
|
14 | + */ |
|
15 | 15 | public function testRequiredParams() |
16 | 16 | { |
17 | 17 | $this->client->get(new ScPrepare( |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Isign\Sign\Sc; |
7 | 7 | use Isign\Sign\ScPrepare; |
8 | 8 | use Isign\Sign\ScPrepareResult; |
9 | -use Isign\StatusResultInterface; |
|
10 | 9 | |
11 | 10 | class ScSignTest extends TestCase |
12 | 11 | { |