vendor/sonata-project/doctrine-extensions/src/Adapter/AdapterInterface.php line 42

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the Sonata Project package.
  5.  *
  6.  * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace Sonata\Doctrine\Adapter;
  12. interface AdapterInterface
  13. {
  14.     public const ID_SEPARATOR '~';
  15.     /**
  16.      * Get the identifiers for this model class as a string.
  17.      *
  18.      * @param object $model
  19.      *
  20.      * @return string a string representation of the identifiers for this instance
  21.      */
  22.     public function getNormalizedIdentifier($model);
  23.     /**
  24.      * Get the identifiers as a string that is save to use in an url.
  25.      *
  26.      * This is similar to getNormalizedIdentifier but guarantees an id that can
  27.      * be used in an URL.
  28.      *
  29.      * @param object $model
  30.      *
  31.      * @return string string representation of the id that is save to use in an url
  32.      */
  33.     public function getUrlsafeIdentifier($model);
  34. }
  35. interface_exists(\Sonata\CoreBundle\Model\Adapter\AdapterInterface::class);