@@ -12,12 +12,12 @@ |
||
12 | 12 | namespace spec\Sylius\Component\Resource\Factory; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use spec\Sylius\Component\Resource\Fixtures\SampleNonTranslatableResource; |
|
16 | -use spec\Sylius\Component\Resource\Fixtures\SampleTranslatableResource; |
|
17 | 15 | use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
18 | 16 | use Sylius\Component\Resource\Factory\FactoryInterface; |
19 | 17 | use Sylius\Component\Resource\Factory\TranslatableFactoryInterface; |
20 | 18 | use Sylius\Component\Resource\Provider\LocaleProviderInterface; |
19 | +use spec\Sylius\Component\Resource\Fixtures\SampleNonTranslatableResource; |
|
20 | +use spec\Sylius\Component\Resource\Fixtures\SampleTranslatableResource; |
|
21 | 21 | |
22 | 22 | require_once __DIR__.'/../Fixtures/SampleTranslatableResource.php'; |
23 | 23 | require_once __DIR__.'/../Fixtures/SampleNonTranslatableResource.php'; |
@@ -19,8 +19,8 @@ |
||
19 | 19 | use Sylius\Component\Resource\Factory\TranslatableFactoryInterface; |
20 | 20 | use Sylius\Component\Resource\Provider\LocaleProviderInterface; |
21 | 21 | |
22 | -require_once __DIR__.'/../Fixtures/SampleTranslatableResource.php'; |
|
23 | -require_once __DIR__.'/../Fixtures/SampleNonTranslatableResource.php'; |
|
22 | +require_once __DIR__ . '/../Fixtures/SampleTranslatableResource.php'; |
|
23 | +require_once __DIR__ . '/../Fixtures/SampleNonTranslatableResource.php'; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @mixin \Sylius\Component\Resource\Factory\TranslatableFactory |
@@ -13,13 +13,13 @@ |
||
13 | 13 | |
14 | 14 | use Pagerfanta\Pagerfanta; |
15 | 15 | use PhpSpec\ObjectBehavior; |
16 | -use spec\Sylius\Component\Resource\Fixtures\SampleResourceInterface; |
|
17 | 16 | use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
18 | 17 | use Sylius\Component\Resource\Exception\UnsupportedMethodException; |
19 | 18 | use Sylius\Component\Resource\Model\ResourceInterface; |
20 | 19 | use Sylius\Component\Resource\Repository\Exception\ExistingResourceException; |
21 | 20 | use Sylius\Component\Resource\Repository\InMemoryRepository; |
22 | 21 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
22 | +use spec\Sylius\Component\Resource\Fixtures\SampleResourceInterface; |
|
23 | 23 | |
24 | 24 | require_once __DIR__.'/../Fixtures/SampleResourceInterface.php'; |
25 | 25 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | use Sylius\Component\Resource\Repository\InMemoryRepository; |
22 | 22 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
23 | 23 | |
24 | -require_once __DIR__.'/../Fixtures/SampleResourceInterface.php'; |
|
24 | +require_once __DIR__ . '/../Fixtures/SampleResourceInterface.php'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @author Jan Góralski <[email protected]> |
@@ -14,8 +14,8 @@ |
||
14 | 14 | use Doctrine\Common\Collections\ArrayCollection; |
15 | 15 | use PhpSpec\ObjectBehavior; |
16 | 16 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
17 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
18 | 17 | use Sylius\Component\Review\Model\ReviewInterface; |
18 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @author Mateusz Zalewski <[email protected]> |
@@ -12,9 +12,9 @@ |
||
12 | 12 | namespace spec\Sylius\Component\Review\Model; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | +use Sylius\Component\Review\Model\ReviewInterface; |
|
15 | 16 | use Sylius\Component\Review\Model\ReviewableInterface; |
16 | 17 | use Sylius\Component\Review\Model\ReviewerInterface; |
17 | -use Sylius\Component\Review\Model\ReviewInterface; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @author Mateusz Zalewski <[email protected]> |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * Returns data from storage or the default one. |
30 | 30 | * |
31 | 31 | * @param string $key |
32 | - * @param mixed $default |
|
32 | + * @param string $default |
|
33 | 33 | * |
34 | 34 | * @return mixed |
35 | 35 | */ |
@@ -39,7 +39,8 @@ discard block |
||
39 | 39 | * Sets data in storage. |
40 | 40 | * |
41 | 41 | * @param string $key |
42 | - * @param mixed $value |
|
42 | + * @param string $value |
|
43 | + * @return void |
|
43 | 44 | */ |
44 | 45 | public function setData($key, $value); |
45 | 46 | |
@@ -47,6 +48,7 @@ discard block |
||
47 | 48 | * Remove data from storage. |
48 | 49 | * |
49 | 50 | * @param string $key |
51 | + * @return void |
|
50 | 52 | */ |
51 | 53 | public function removeData($key); |
52 | 54 | } |
@@ -13,9 +13,9 @@ |
||
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
16 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
17 | 16 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
18 | 17 | use Sylius\Component\Taxation\Model\TaxRateInterface; |
18 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
19 | 19 | use Sylius\Component\Taxation\Resolver\TaxRateResolverInterface; |
20 | 20 | |
21 | 21 | /** |
@@ -41,6 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * @param null|TaxonInterface $taxon |
44 | + * @return void |
|
44 | 45 | */ |
45 | 46 | public function setParent(TaxonInterface $taxon = null); |
46 | 47 | |
@@ -63,11 +64,13 @@ discard block |
||
63 | 64 | |
64 | 65 | /** |
65 | 66 | * @param TaxonInterface $taxon |
67 | + * @return void |
|
66 | 68 | */ |
67 | 69 | public function addChild(TaxonInterface $taxon); |
68 | 70 | |
69 | 71 | /** |
70 | 72 | * @param TaxonInterface $taxon |
73 | + * @return void |
|
71 | 74 | */ |
72 | 75 | public function removeChild(TaxonInterface $taxon); |
73 | 76 | |
@@ -78,6 +81,7 @@ discard block |
||
78 | 81 | |
79 | 82 | /** |
80 | 83 | * @param string $name |
84 | + * @return void |
|
81 | 85 | */ |
82 | 86 | public function setName($name); |
83 | 87 | |
@@ -88,6 +92,7 @@ discard block |
||
88 | 92 | |
89 | 93 | /** |
90 | 94 | * @param string $permalink |
95 | + * @return void |
|
91 | 96 | */ |
92 | 97 | public function setPermalink($permalink); |
93 | 98 | |
@@ -98,6 +103,7 @@ discard block |
||
98 | 103 | |
99 | 104 | /** |
100 | 105 | * @param int $left |
106 | + * @return void |
|
101 | 107 | */ |
102 | 108 | public function setLeft($left); |
103 | 109 | |
@@ -108,6 +114,7 @@ discard block |
||
108 | 114 | |
109 | 115 | /** |
110 | 116 | * @param int $right |
117 | + * @return void |
|
111 | 118 | */ |
112 | 119 | public function setRight($right); |
113 | 120 | |
@@ -118,6 +125,7 @@ discard block |
||
118 | 125 | |
119 | 126 | /** |
120 | 127 | * @param int $level |
128 | + * @return void |
|
121 | 129 | */ |
122 | 130 | public function setLevel($level); |
123 | 131 | } |
@@ -16,5 +16,10 @@ |
||
16 | 16 | */ |
17 | 17 | interface CanonicalizerInterface |
18 | 18 | { |
19 | + /** |
|
20 | + * @param string $string |
|
21 | + * |
|
22 | + * @return string |
|
23 | + */ |
|
19 | 24 | public function canonicalize($string); |
20 | 25 | } |
@@ -38,6 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @param string $email |
41 | + * @return void |
|
41 | 42 | */ |
42 | 43 | public function setEmail($email); |
43 | 44 | |
@@ -50,6 +51,7 @@ discard block |
||
50 | 51 | |
51 | 52 | /** |
52 | 53 | * @param string $emailCanonical |
54 | + * @return void |
|
53 | 55 | */ |
54 | 56 | public function setEmailCanonical($emailCanonical); |
55 | 57 | |
@@ -67,6 +69,7 @@ discard block |
||
67 | 69 | |
68 | 70 | /** |
69 | 71 | * @param string $firstName |
72 | + * @return void |
|
70 | 73 | */ |
71 | 74 | public function setFirstName($firstName); |
72 | 75 | |
@@ -77,6 +80,7 @@ discard block |
||
77 | 80 | |
78 | 81 | /** |
79 | 82 | * @param string $lastName |
83 | + * @return void |
|
80 | 84 | */ |
81 | 85 | public function setLastName($lastName); |
82 | 86 | |
@@ -87,6 +91,7 @@ discard block |
||
87 | 91 | |
88 | 92 | /** |
89 | 93 | * @param \DateTime $birthday |
94 | + * @return void |
|
90 | 95 | */ |
91 | 96 | public function setBirthday(\DateTime $birthday = null); |
92 | 97 | |
@@ -99,6 +104,7 @@ discard block |
||
99 | 104 | * You should use interface constants for that. |
100 | 105 | * |
101 | 106 | * @param string $gender |
107 | + * @return void |
|
102 | 108 | */ |
103 | 109 | public function setGender($gender); |
104 | 110 | |
@@ -119,6 +125,7 @@ discard block |
||
119 | 125 | |
120 | 126 | /** |
121 | 127 | * @param string $phoneNumber |
128 | + * @return void |
|
122 | 129 | */ |
123 | 130 | public function setPhoneNumber($phoneNumber); |
124 | 131 | } |