Mark classes as final

This commit is contained in:
brabli
2024-08-05 12:09:10 +01:00
parent cb16158eb3
commit f30c20ceda
6 changed files with 7 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ namespace Pcm\GeocodeBundle\Model;
*
* @package Pcm\GeocodeBundle
*/
class LatLongModel
final class LatLongModel
{
public function __construct(private float $latitude, private float $longitude) {}

View File

@@ -10,7 +10,7 @@ use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigura
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
class PcmGeocodeBundle extends AbstractBundle {
final class PcmGeocodeBundle extends AbstractBundle {
public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
{
$loader = new YamlFileLoader($builder, new FileLocator(__DIR__.'/../config/'));

View File

@@ -8,7 +8,7 @@ use Pcm\GeocodeBundle\Model\LatLongModel;
use Symfony\Contracts\HttpClient\HttpClientInterface;
use Symfony\Contracts\HttpClient\ResponseInterface;
class Geocoder
final class Geocoder
{
private const string API_URL = "https://nominatim.openstreetmap.org/search";