@@ -18,6 +18,9 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | class BackendCacheFactory |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @param string $type |
|
| 23 | + */ |
|
| 21 | 24 | public function create($type, $host = null, $port = null) |
| 22 | 25 | { |
| 23 | 26 | $host = $host ? $host : '127.0.0.1'; |
@@ -48,6 +51,9 @@ discard block |
||
| 48 | 51 | return new ArrayCache(); |
| 49 | 52 | } |
| 50 | 53 | |
| 54 | + /** |
|
| 55 | + * @param integer $port |
|
| 56 | + */ |
|
| 51 | 57 | private function createMemcache($host, $port) |
| 52 | 58 | { |
| 53 | 59 | $memcache = new \Memcache(); |
@@ -70,6 +76,9 @@ discard block |
||
| 70 | 76 | return $cache; |
| 71 | 77 | } |
| 72 | 78 | |
| 79 | + /** |
|
| 80 | + * @param integer $port |
|
| 81 | + */ |
|
| 73 | 82 | private function createMemcached($host, $port) |
| 74 | 83 | { |
| 75 | 84 | $memcached = new \Memcached(); |
@@ -70,6 +70,9 @@ |
||
| 70 | 70 | } |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $message |
|
| 75 | + */ |
|
| 73 | 76 | private function output($message, OutputInterface $output = null) |
| 74 | 77 | { |
| 75 | 78 | if (null !== $output) { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * Find all collection in the provided databox |
| 22 | 22 | * |
| 23 | 23 | * @param integer $databoxId the databox id |
| 24 | - * @return ArrayCollection|\PhraseanetSDK\Entity\DataboxCollection[] |
|
| 24 | + * @return ArrayCollection |
|
| 25 | 25 | * @throws RuntimeException |
| 26 | 26 | */ |
| 27 | 27 | public function findByDatabox($databoxId) |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * Retrieve the entry identified by its id |
| 23 | 23 | * |
| 24 | 24 | * @param integer $id The entry id |
| 25 | - * @return \PhraseanetSDK\Entity\Feed |
|
| 25 | + * @return FeedEntry |
|
| 26 | 26 | * @throws RuntimeException |
| 27 | 27 | */ |
| 28 | 28 | public function findById($id) |
@@ -133,7 +133,6 @@ |
||
| 133 | 133 | * |
| 134 | 134 | * @param string $endpoint |
| 135 | 135 | * @param EventSubscriberInterface[] $plugins |
| 136 | - * @param int $endpointVersion |
|
| 137 | 136 | * @return static |
| 138 | 137 | */ |
| 139 | 138 | public static function create( |