Commit 2211a933 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Adaptation pour les dernières modif du module unicaen/db-import

parent 808296aa
Loading
Loading
Loading
Loading
−1
Changes for composer.json: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@
        "unicaen/db-import":             "^3.1",
        "unicaen/faq":                   "^3.0",
        "unicaen/ldap":                  "^3.0",
        "unicaen/oracle":                "^3.0",
        "webmozart/assert":              "^1.3",
        "zendframework/zend-feed":       "^2.12"
    },
+11
Changes for config/autoload/unicaen-db-import.global.php: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

use Application\Entity\Db\Source;
use Import\Model\ImportObserv;
use Import\Model\ImportObservResult;

@@ -13,6 +14,16 @@ return [
            // Cf. config locale
        ],

        //
        // Classe de l'entité Doctrine représentant une "Source".
        //
        'source_entity_class' => Source::class,

        //
        // Code de la Source par défaut (injectée dans les entités implémentant SoucreAwareInterface).
        //
        'default_source_code' => 'SYGAL::sygal',

        //
        // Alias éventuels des noms de colonnes d'historique.
        //
+11 −23
Changes for module/Application/src/Application/Entity/Db/Source.php: 11 added lines, 23 removed lines.
Original line number Diff line number Diff line
@@ -36,14 +36,10 @@ class Source extends \UnicaenDbImport\Entity\Db\Source
     * Set code
     *
     * @param string $code
     *
     * @return Source
     */
    public function setCode($code)
    public function setCode(string $code)
    {
        $this->code = $code;

        return $this;
    }

    /**
@@ -51,7 +47,7 @@ class Source extends \UnicaenDbImport\Entity\Db\Source
     *
     * @return string
     */
    public function getCode()
    public function getCode(): string
    {
        return $this->code;
    }
@@ -60,14 +56,10 @@ class Source extends \UnicaenDbImport\Entity\Db\Source
     * Set importable
     *
     * @param boolean $importable
     *
     * @return Source
     */
    public function setImportable($importable)
    public function setImportable(bool $importable)
    {
        $this->importable = $importable;

        return $this;
    }

    /**
@@ -75,7 +67,7 @@ class Source extends \UnicaenDbImport\Entity\Db\Source
     *
     * @return boolean
     */
    public function getImportable()
    public function getImportable(): bool
    {
        return $this->importable;
    }
@@ -84,14 +76,10 @@ class Source extends \UnicaenDbImport\Entity\Db\Source
     * Set libelle
     *
     * @param string $libelle
     *
     * @return Source
     */
    public function setLibelle($libelle)
    public function setLibelle(string $libelle)
    {
        $this->libelle = $libelle;

        return $this;
    }

    /**
@@ -99,7 +87,7 @@ class Source extends \UnicaenDbImport\Entity\Db\Source
     *
     * @return string
     */
    public function getLibelle()
    public function getLibelle(): string
    {
        return $this->libelle;
    }
@@ -109,15 +97,15 @@ class Source extends \UnicaenDbImport\Entity\Db\Source
     *
     * @return integer
     */
    public function getId()
    public function getId(): int
    {
        return $this->id;
    }

    /**
     * @return Etablissement
     * @return Etablissement|null
     */
    public function getEtablissement()
    public function getEtablissement(): ?Etablissement
    {
        return $this->etablissement;
    }
@@ -127,7 +115,7 @@ class Source extends \UnicaenDbImport\Entity\Db\Source
     *
     * @return string
     */
    public function __toString()
    public function __toString(): string
    {
        return $this->getLibelle();
    }
@@ -140,7 +128,7 @@ class Source extends \UnicaenDbImport\Entity\Db\Source
     * @return array
     * @link  http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo
     */
    function __debugInfo()
    function __debugInfo(): array
    {
        return [
            'libelle' => $this->libelle,