Code Duplication    Length = 13-13 lines in 2 locations

src/Collection/LazyModelCollection.php 1 location

@@ 62-74 (lines=13) @@
59
     * @param string $foreignId
60
     * @param array|null $orderBy
61
     */
62
    public function __construct(
63
        ResolverInterface $resolver,
64
        string $modelClass,
65
        string $foreignField,
66
        string $foreignId,
67
        array $orderBy = null
68
    ) {
69
        $this->resolver = $resolver;
70
        $this->modelClass = $modelClass;
71
        $this->foreignField = $foreignField;
72
        $this->foreignId = $foreignId;
73
        $this->orderBy = $orderBy;
74
    }
75
76
    private function resolveModels()
77
    {

src/Collection/ModelCollection.php 1 location

@@ 45-57 (lines=13) @@
42
     * @param string $foreignId
43
     * @param array|null $orderBy
44
     */
45
    public function __construct(
46
        string $modelClass,
47
        string $foreignField,
48
        string $foreignId,
49
        array $orderBy = null
50
    ) {
51
        $this->modelClass = $modelClass;
52
        $this->foreignField = $foreignField;
53
        $this->foreignId = $foreignId;
54
        $this->orderBy = $orderBy;
55
56
        $this->models = [];
57
    }
58
59
    /**
60
     * @param ModelInterface $model