Completed
Pull Request — master (#14)
by Pavel
28:57
created
EntityManager.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Bankiru\Api\Doctrine\Proxy\ApiCollection;
8 8
 use Bankiru\Api\Doctrine\Proxy\ProxyFactory;
9 9
 use Bankiru\Api\Doctrine\Utility\IdentifierFixer;
10
-use Doctrine\Common\Collections\AbstractLazyCollection;
11 10
 use Doctrine\Common\Persistence\ObjectRepository;
12 11
 use Doctrine\Common\Proxy\Proxy;
13 12
 
Please login to merge, or discard this patch.
EntityRepository.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace Bankiru\Api\Doctrine;
4 4
 
5 5
 use Bankiru\Api\Doctrine\Mapping\ApiMetadata;
6
-use Bankiru\Api\Doctrine\Proxy\ApiCollection;
7
-use Doctrine\Common\Collections\Collection;
8 6
 use Doctrine\Common\Persistence\ObjectRepository;
9 7
 use ScayTrase\Api\Rpc\RpcClientInterface;
10 8
 
Please login to merge, or discard this patch.
Proxy/ApiCollection.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,6 +188,9 @@  discard block
 block discarded – undo
188 188
         return $this->snapshot;
189 189
     }
190 190
 
191
+    /**
192
+     * @param boolean $state
193
+     */
191 194
     public function setInitialized($state)
192 195
     {
193 196
         $this->initialized = (bool)$state;
@@ -452,7 +455,7 @@  discard block
 block discarded – undo
452 455
      * Internal note: Tried to implement Serializable first but that did not work well
453 456
      *                with circular references. This solution seems simpler and works well.
454 457
      *
455
-     * @return array
458
+     * @return string[]
456 459
      */
457 460
     public function __sleep()
458 461
     {
Please login to merge, or discard this patch.
Tests/AbstractEntityManagerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     private $clients = [];
29 29
 
30 30
     /**
31
-     * @return mixed
31
+     * @return ClientRegistryInterface
32 32
      */
33 33
     public function getRegistry()
34 34
     {
Please login to merge, or discard this patch.
UnitOfWork.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
     }
168 168
 
169 169
     /**
170
-     * @param             $className
170
+     * @param             string $className
171 171
      * @param \stdClass   $data
172 172
      *
173 173
      * @return ObjectManagerAware|object
Please login to merge, or discard this patch.