<?php

namespace App\Repositories\Eloquent;

use App\Models\ProfessionalId;
use App\Repositories\Interfaces\ProfessionalIdRepositoryInterface;
use Illuminate\Support\Collection;

class ProfessionalIdRepository extends BaseRepository implements ProfessionalIdRepositoryInterface
{

    /**
     * ProfessionalidRepository constructor.
     *
     * @param ProfessionalId $model
     */
    public function __construct(ProfessionalId $model)
    {
        parent::__construct($model);
    }

    public function getByProfessionalId($professionalId)
    {
        return $this->model->where('professional_id', $professionalId)->get();
    }
}
