Covivo/mobicoop

View on GitHub
api/src/Carpool/Service/MatchingManager.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Carpool\Service;

use App\Carpool\Entity\Matching;
use App\Carpool\Repository\MatchingRepository;

class MatchingManager
{
    private $_repository;

    public function __construct(MatchingRepository $repository)
    {
        $this->_repository = $repository;
    }

    public function getMatching(int $matchinId): ?Matching
    {
        return $this->_repository->find($matchinId);
    }
}