@@ -28,7 +28,7 @@ |
||
28 | 28 | /** |
29 | 29 | * Construct. |
30 | 30 | * |
31 | - * @param FileLocator $fileLocator |
|
31 | + * @param FileLocatorInterface $fileLocator |
|
32 | 32 | */ |
33 | 33 | public function __construct(FileLocatorInterface $fileLocator) |
34 | 34 | { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * Register a loader for given entity class. |
48 | 48 | * |
49 | 49 | * @param string $entityClass |
50 | - * @param string $loader |
|
50 | + * @param LazyLoaderInterface $loader |
|
51 | 51 | */ |
52 | 52 | public function registerDoctrineLazyLoader($entityClass, LazyLoaderInterface $loader) |
53 | 53 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Retrieve a lazy loader for given class (or not). |
67 | 67 | * |
68 | - * @param object $entityClass |
|
68 | + * @param object $entity |
|
69 | 69 | * |
70 | 70 | * @return |
71 | 71 | */ |
@@ -17,6 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | /** |
19 | 19 | * @see UserProviderInterface::loadUserByUsername() |
20 | + * @param string $username |
|
20 | 21 | */ |
21 | 22 | public function loadUserByUsername($username) |
22 | 23 | { |
@@ -52,6 +53,7 @@ discard block |
||
52 | 53 | |
53 | 54 | /** |
54 | 55 | * @see UserProviderInterface::supportsClass() |
56 | + * @param string $class |
|
55 | 57 | */ |
56 | 58 | public function supportsClass($class) |
57 | 59 | { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | * Hydrate lazy loads delegate into given Collectionnable, if enabled and if |
14 | 14 | * entity supports it. |
15 | 15 | * |
16 | - * @param LazyPropertiesInterface $object (not hinted to help notation and custom exception) |
|
17 | 16 | * |
18 | 17 | * @return LazyPropertiesInterface |
19 | 18 | */ |
@@ -88,6 +88,8 @@ |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * @see LoaderInterface::configureMetadata() |
91 | + * @param string $entityClass |
|
92 | + * @param string $collectionClass |
|
91 | 93 | */ |
92 | 94 | public function configureMetadata($entityClass, array $entityProperties, $collectionClass) |
93 | 95 | { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | */ |
109 | 109 | public function getLoadingDelegate() |
110 | 110 | { |
111 | - return $this->loadingDelegate = $this->loadingDelegate ?: function ($id) { |
|
111 | + return $this->loadingDelegate = $this->loadingDelegate ?: function($id) { |
|
112 | 112 | return $this->retrieveById($id); |
113 | 113 | }; |
114 | 114 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @param string $format optional date format |
40 | 40 | * |
41 | - * @return \DateTime|string |
|
41 | + * @return \DateTime|null |
|
42 | 42 | */ |
43 | 43 | public function getCreatedAt($format = null) |
44 | 44 | { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @param string $format optional date format |
69 | 69 | * |
70 | - * @return \DateTime|string |
|
70 | + * @return \DateTime|null |
|
71 | 71 | */ |
72 | 72 | public function getUpdatedAt($format = null) |
73 | 73 | { |
@@ -28,8 +28,7 @@ |
||
28 | 28 | protected function formatDateTime(\DateTime $date = null, $format = null) |
29 | 29 | { |
30 | 30 | return $date && $format ? |
31 | - $date->format($format) : |
|
32 | - $date |
|
31 | + $date->format($format) : $date |
|
33 | 32 | ; |
34 | 33 | } |
35 | 34 |
@@ -19,7 +19,6 @@ |
||
19 | 19 | /** |
20 | 20 | * define defaultLocale |
21 | 21 | * |
22 | - * @param string $currentLocale |
|
23 | 22 | * @return self |
24 | 23 | */ |
25 | 24 | public function setDefaultLocale($defaultLocale); |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | return $this->id; |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param integer $id |
|
36 | + */ |
|
34 | 37 | public function setId($id) |
35 | 38 | { |
36 | 39 | $this->id = $id; |
@@ -38,6 +41,9 @@ discard block |
||
38 | 41 | return $this; |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param string $protect |
|
46 | + */ |
|
41 | 47 | public function setProtectedProtect($protect) |
42 | 48 | { |
43 | 49 | $this->protect = $protect; |
@@ -50,6 +56,9 @@ discard block |
||
50 | 56 | return $this->label; |
51 | 57 | } |
52 | 58 | |
59 | + /** |
|
60 | + * @param string $label |
|
61 | + */ |
|
53 | 62 | public function setLabel($label) |
54 | 63 | { |
55 | 64 | $this->label = $label; |
@@ -18,6 +18,9 @@ |
||
18 | 18 | return $this->id; |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @param integer $id |
|
23 | + */ |
|
21 | 24 | public function setId($id) |
22 | 25 | { |
23 | 26 | $this->id = $id; |