Commit a8f47bcf authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

WIP API inscription admin

parent 2618843c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -9,6 +9,11 @@
.~*
.sass-cache/
.phpcs-cache
.phpunit.result.cache

# draw.io
*.bkp
*.dtmp

# temporaire (pour la branche migration_postgres)
bin/aaa.sh
+6 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
        "phpcompatibility/php-compatibility": "*",

        "unicaen/code": "^6.0",
        "unicaen/test": "^6.0"
        "unicaen/test": "^6.1"
    },
    "require": {
        "php": "^8.2",
@@ -83,12 +83,14 @@
            "Indicateur\\": "module/Indicateur/src",
            "Individu\\": "module/Individu/src",
            "Information\\": "module/Information/src",
            "InscriptionAdministrative\\": "module/InscriptionAdministrative/src",
            "Notification\\": "module/Notification/src",
            "RapportActivite\\": "module/RapportActivite/src",
            "Retraitement\\": "module/Retraitement/src",
            "Soutenance\\": "module/Soutenance/src",
            "StepStar\\": "module/StepStar/src",
            "Structure\\": "module/Structure/src",
            "Substitution\\": "module/Substitution/src",
            "SygalApi\\": "vendor/unicaen/sygal-api/src",
            "These\\": "module/These/src",
            "UnicaenAvis\\": "module/UnicaenAvis/src",
@@ -100,7 +102,9 @@
            "ApplicationFunctionalTest\\": "module/Application/tests/ApplicationFunctionalTest",
            "ApplicationUnitTest\\": "module/Application/tests/ApplicationUnitTest",
            "ImportTest\\": "module/Import/tests",
            "RetraitementTest\\": "module/Retraitement/test/RetraitementTest"
            "RetraitementTest\\": "module/Retraitement/test/RetraitementTest",
            "SygalApiTest\\": "module/SygalApiImpl/tests/SygalApiTest",
            "InscriptionAdministrativeTest\\": "module/InscriptionAdministrative/tests/InscriptionAdministrativeTest"
        }
    },
    "scripts": {
+115 −0
Original line number Diff line number Diff line
@@ -2409,6 +2409,121 @@
            ],
            "time": "2024-07-18T11:15:46+00:00"
        },
        {
            "name": "icecave/parity",
            "version": "1.0.0",
            "source": {
                "type": "git",
                "url": "https://github.com/icecave/parity.git",
                "reference": "0109fef58b3230d23b20b2ac52ecdf477218d300"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/icecave/parity/zipball/0109fef58b3230d23b20b2ac52ecdf477218d300",
                "reference": "0109fef58b3230d23b20b2ac52ecdf477218d300",
                "shasum": ""
            },
            "require": {
                "icecave/repr": "~1",
                "php": ">=5.3"
            },
            "require-dev": {
                "eloquent/liberator": "~1",
                "icecave/archer": "~1"
            },
            "suggest": {
                "eloquent/asplode": "Drop-in exception-based error handling."
            },
            "type": "library",
            "autoload": {
                "psr-0": {
                    "Icecave\\Parity": "src"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "James Harris",
                    "email": "james.harris@icecave.com.au",
                    "homepage": "https://github.com/jmalloc"
                }
            ],
            "description": "A customizable deep comparison library.",
            "homepage": "https://github.com/IcecaveStudios/parity",
            "keywords": [
                "compare",
                "comparison",
                "equal",
                "equality",
                "greater",
                "less",
                "sort",
                "sorting"
            ],
            "support": {
                "issues": "https://github.com/icecave/parity/issues",
                "source": "https://github.com/icecave/parity/tree/1.0.0"
            },
            "time": "2014-01-17T05:56:27+00:00"
        },
        {
            "name": "icecave/repr",
            "version": "1.0.1",
            "source": {
                "type": "git",
                "url": "https://github.com/icecave/repr.git",
                "reference": "8a3d2953adf5f464a06e3e2587aeacc97e2bed07"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/icecave/repr/zipball/8a3d2953adf5f464a06e3e2587aeacc97e2bed07",
                "reference": "8a3d2953adf5f464a06e3e2587aeacc97e2bed07",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3"
            },
            "require-dev": {
                "icecave/archer": "~1"
            },
            "suggest": {
                "eloquent/asplode": "Drop-in exception-based error handling."
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "Icecave\\Repr\\": "src"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "James Harris",
                    "email": "james.harris@icecave.com.au",
                    "homepage": "https://github.com/jmalloc"
                }
            ],
            "description": "A library for generating string representations of any value, inspired by Python's reprlib library.",
            "homepage": "https://github.com/IcecaveStudios/repr",
            "keywords": [
                "human",
                "readable",
                "repr",
                "representation",
                "string"
            ],
            "support": {
                "issues": "https://github.com/icecave/repr/issues",
                "source": "https://github.com/icecave/repr/tree/1.0.1"
            },
            "time": "2014-07-25T05:44:41+00:00"
        },
        {
            "name": "justinrainbow/json-schema",
            "version": "6.3.0",
+1 −0
Original line number Diff line number Diff line
# Compte de connexion à l'API SyGAL
user:password
+16 −48
Original line number Diff line number Diff line
@@ -36,10 +36,7 @@ class Admission implements HistoriqueAwareInterface, ResourceInterface{
     */
    private $id;

    /**
     * @var string|null
     */
    private $numeroCandidature;
    private string $numeroCandidature;

    /**
     * @var Collection
@@ -75,10 +72,7 @@ class Admission implements HistoriqueAwareInterface, ResourceInterface{
     */
    private $individu;

    /**
     * @var Doctorant
     */
    private $doctorant;
    private ?Doctorant $doctorant = null;

    /** @var AdmissionAvis | AdmissionValidation|null */
    private $operationPossible = null;
@@ -123,28 +117,26 @@ class Admission implements HistoriqueAwareInterface, ResourceInterface{
        return $this->id;
    }

    /**
     * Set numeroCandidature.
     *
     * @param string|null $numeroCandidature
     *
     * @return Admission
     */
    public function setNumeroCandidature($numeroCandidature = null)
    public function getNumeroCandidature(): string
    {
        $this->numeroCandidature = $numeroCandidature;
        return $this->numeroCandidature;
    }

    public function setNumeroCandidature(string $numeroCandidature): self
    {
        $this->numeroCandidature = $numeroCandidature;
        return $this;
    }

    /**
     * Get numeroCandidature.
     *
     * @return string|null
     */
    public function getNumeroCandidature()
    public function getDoctorant(): ?Doctorant
    {
        return $this->numeroCandidature;
        return $this->doctorant;
    }

    public function setDoctorant(?Doctorant $doctorant): self
    {
        $this->doctorant = $doctorant;
        return $this;
    }

    /**
@@ -392,30 +384,6 @@ class Admission implements HistoriqueAwareInterface, ResourceInterface{
        return $this->individu;
    }

    /**
     * Set doctorant.
     *
     * @param Doctorant|null $doctorant
     *
     * @return Admission
     */
    public function setDoctorant(Doctorant $doctorant = null)
    {
        $this->doctorant = $doctorant;

        return $this;
    }

    /**
     * Get doctorant.
     *
     * @return Doctorant|null
     */
    public function getDoctorant()
    {
        return $this->doctorant;
    }

    /**
     * Injecte l'opération éventuelle qu'il est possible de réaliser sur ce dossier d'admission.
     */
Loading