@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | protected $types = []; |
26 | 26 | |
27 | 27 | /** |
28 | - * @return array |
|
28 | + * @return TypeInterface[] |
|
29 | 29 | */ |
30 | 30 | public function getTypes() |
31 | 31 | { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @param $type |
49 | - * @return null|object |
|
49 | + * @return null|TypeInterface |
|
50 | 50 | */ |
51 | 51 | protected function resolveType($type) |
52 | 52 | { |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * @param mixed $value |
149 | 149 | * @param ElementInterface|null $element |
150 | - * @return array|mixed|null|object |
|
150 | + * @return TypeInterface|null |
|
151 | 151 | */ |
152 | 152 | public function normalizeValue($value, ElementInterface $element = null) |
153 | 153 | { |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace flipbox\link\types; |
4 | 4 | |
5 | 5 | use Craft; |
6 | -use craft\elements\Entry as EntryElement; |
|
7 | 6 | use craft\base\ElementInterface; |
7 | +use craft\elements\Entry as EntryElement; |
|
8 | 8 | use flipbox\link\fields\Link; |
9 | 9 | use yii\base\Exception; |
10 | 10 |