Skip to content
Snippets Groups Projects
Commit 552b21d8 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Creation du WebService These coté Unicaen

parent 85f2279d
No related branches found
No related tags found
No related merge requests found
Showing
with 449 additions and 1146 deletions
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Application\\": "module/Application/src/", "Application\\": "module/Application/src/",
"FirstRest\\": "module/FirstRest/src/" "ImportData\\": "module/ImportData/src/"
} }
}, },
"autoload-dev": { "autoload-dev": {
......
This diff is collapsed.
<?php <?php
/**
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
* @copyright Copyright (c] 2014-2016 Zend Technologies USA Inc. (http://www.zend.com]
*/
return [ return [
'zf-content-negotiation' => [ 'zf-content-negotiation' => [
'selectors' => [], 'selectors' => [],
......
<?php <?php
/** /**
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause * Configuration file generated by ZF Apigility Admin
* @copyright Copyright (c) 2014-2016 Zend Technologies USA Inc. (http://www.zend.com) *
*/ * The previous config file has been stored in ./config/modules.config.old
/**
* List of enabled modules for this application.
*/ */
return [ return [
'Zend\Db', 'Zend\\Cache',
'Zend\Filter', 'Zend\\Form',
'Zend\Hydrator', 'Zend\\Db',
'Zend\InputFilter', 'Zend\\Filter',
'Zend\Paginator', 'Zend\\Hydrator',
'Zend\Router', 'Zend\\InputFilter',
'Zend\Validator', 'Zend\\Paginator',
'ZF\Apigility', 'Zend\\Router',
'ZF\Apigility\Documentation', 'Zend\\Validator',
'ZF\ApiProblem', 'ZF\\Apigility',
'ZF\Configuration', 'ZF\\Apigility\\Documentation',
'ZF\OAuth2', 'ZF\\ApiProblem',
'ZF\MvcAuth', 'ZF\\Configuration',
'ZF\Hal', 'ZF\\OAuth2',
'ZF\ContentNegotiation', 'ZF\\MvcAuth',
'ZF\ContentValidation', 'ZF\\Hal',
'ZF\Rest', 'ZF\\ContentNegotiation',
'ZF\Rpc', 'ZF\\ContentValidation',
'ZF\Versioning', 'ZF\\Rest',
'ZF\\Rpc',
'ZF\\Versioning',
'DoctrineModule',
'DoctrineORMModule',
'Phpro\\DoctrineHydrationModule',
'ZF\\Apigility\\Doctrine\\Server',
'Application', 'Application',
]; ];
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
* The previous config file has been stored in ./config/modules.config.old * The previous config file has been stored in ./config/modules.config.old
*/ */
return [ return [
'Zend\Cache', 'Zend\\Cache',
'Zend\Form', 'Zend\\Form',
'Zend\\Db', 'Zend\\Db',
'Zend\\Filter', 'Zend\\Filter',
'Zend\\Hydrator', 'Zend\\Hydrator',
...@@ -28,8 +28,8 @@ return [ ...@@ -28,8 +28,8 @@ return [
'ZF\\Versioning', 'ZF\\Versioning',
'DoctrineModule', 'DoctrineModule',
'DoctrineORMModule', 'DoctrineORMModule',
'Phpro\DoctrineHydrationModule', 'Phpro\\DoctrineHydrationModule',
'ZF\Apigility\Doctrine\Server', 'ZF\\Apigility\\Doctrine\\Server',
'Application', 'Application',
'FirstRest', 'ImportData',
]; ];
<?php
namespace FirstRest;
use ZF\Apigility\Provider\ApigilityProviderInterface;
class Module implements ApigilityProviderInterface
{
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
public function getAutoloaderConfig()
{
return [
'ZF\Apigility\Autoloader' => [
'namespaces' => [
__NAMESPACE__ => __DIR__ . '/src',
],
],
];
}
}
<?php
return [
'service_manager' => [
'factories' => [
\FirstRest\V1\Rest\Ping\PingResource::class => \FirstRest\V1\Rest\Ping\PingResourceFactory::class,
],
],
'router' => [
'routes' => [
'first-rest.rest.ping' => [
'type' => 'Segment',
'options' => [
'route' => '/ping[/:ping_id]',
'defaults' => [
'controller' => 'FirstRest\\V1\\Rest\\Ping\\Controller',
],
],
],
'first-rest.rest.doctrine.doctorant' => [
'type' => 'Segment',
'options' => [
'route' => '/doctorant[/:doctorant_id]',
'defaults' => [
'controller' => 'FirstRest\\V1\\Rest\\Doctorant\\Controller',
],
],
],
],
],
'zf-versioning' => [
'uri' => [
0 => 'first-rest.rest.ping',
1 => 'first-rest.rest.doctrine.doctorant',
],
],
'zf-rest' => [
'FirstRest\\V1\\Rest\\Ping\\Controller' => [
'listener' => \FirstRest\V1\Rest\Ping\PingResource::class,
'route_name' => 'first-rest.rest.ping',
'route_identifier_name' => 'ping_id',
'collection_name' => 'ping',
'entity_http_methods' => [
0 => 'GET',
],
'collection_http_methods' => [
0 => 'GET',
],
'collection_query_whitelist' => [],
'page_size' => '25',
'page_size_param' => null,
'entity_class' => \FirstRest\V1\Rest\Ping\PingEntity::class,
'collection_class' => \FirstRest\V1\Rest\Ping\PingCollection::class,
'service_name' => 'Ping',
],
'FirstRest\\V1\\Rest\\Doctorant\\Controller' => [
'listener' => \FirstRest\V1\Rest\Doctorant\DoctorantResource::class,
'route_name' => 'first-rest.rest.doctrine.doctorant',
'route_identifier_name' => 'doctorant_id',
'entity_identifier_name' => 'id',
'collection_name' => 'doctorant',
'entity_http_methods' => [
0 => 'GET',
1 => 'PATCH',
2 => 'PUT',
],
'collection_http_methods' => [
0 => 'GET',
1 => 'POST',
],
'collection_query_whitelist' => [],
'page_size' => '25',
'page_size_param' => 'p',
'entity_class' => \FirstRest\V1\Entity\Db\Doctorant::class,
'collection_class' => \FirstRest\V1\Rest\Doctorant\DoctorantCollection::class,
'service_name' => 'Doctorant',
],
],
'zf-content-negotiation' => [
'controllers' => [
'FirstRest\\V1\\Rest\\Ping\\Controller' => 'HalJson',
'FirstRest\\V1\\Rest\\Doctorant\\Controller' => 'HalJson',
],
'accept_whitelist' => [
'FirstRest\\V1\\Rest\\Ping\\Controller' => [
0 => 'application/vnd.first-rest.v1+json',
1 => 'application/hal+json',
2 => 'application/json',
],
],
'content_type_whitelist' => [
'FirstRest\\V1\\Rest\\Ping\\Controller' => [
0 => 'application/vnd.first-rest.v1+json',
1 => 'application/json',
],
],
'accept-whitelist' => [
'FirstRest\\V1\\Rest\\Doctorant\\Controller' => [
0 => 'application/vnd.first-rest.v1+json',
1 => 'application/hal+json',
2 => 'application/json',
],
],
'content-type-whitelist' => [
'FirstRest\\V1\\Rest\\Doctorant\\Controller' => [
0 => 'application/json',
],
],
],
'zf-hal' => [
'metadata_map' => [
\FirstRest\V1\Rest\Ping\PingEntity::class => [
'entity_identifier_name' => 'id',
'route_name' => 'first-rest.rest.ping',
'route_identifier_name' => 'ping_id',
'hydrator' => \Zend\Hydrator\ClassMethods::class,
],
\FirstRest\V1\Rest\Ping\PingCollection::class => [
'entity_identifier_name' => 'id',
'route_name' => 'first-rest.rest.ping',
'route_identifier_name' => 'ping_id',
'is_collection' => true,
],
\FirstRest\V1\Entity\Db\Doctorant::class => [
'route_identifier_name' => 'doctorant_id',
'entity_identifier_name' => 'id',
'route_name' => 'first-rest.rest.doctrine.doctorant',
'hydrator' => 'FirstRest\\V1\\Rest\\Doctorant\\DoctorantHydrator',
],
\FirstRest\V1\Rest\Doctorant\DoctorantCollection::class => [
'entity_identifier_name' => 'id',
'route_name' => 'first-rest.rest.doctrine.doctorant',
'is_collection' => true,
],
],
],
'zf-apigility' => [
'doctrine-connected' => [
\FirstRest\V1\Rest\Doctorant\DoctorantResource::class => [
'object_manager' => 'doctrine.entitymanager.orm_default',
'hydrator' => 'FirstRest\\V1\\Rest\\Doctorant\\DoctorantHydrator',
],
],
],
'doctrine-hydrator' => [
'FirstRest\\V1\\Rest\\Doctorant\\DoctorantHydrator' => [
'entity_class' => \FirstRest\V1\Entity\Db\Doctorant::class,
'object_manager' => 'doctrine.entitymanager.orm_default',
'by_value' => true,
'strategies' => [],
'use_generated_hydrator' => true,
],
],
'zf-content-validation' => [
'FirstRest\\V1\\Rest\\Doctorant\\Controller' => [
'input_filter' => 'FirstRest\\V1\\Rest\\Doctorant\\Validator',
],
],
'input_filter_specs' => [
'FirstRest\\V1\\Rest\\Doctorant\\Validator' => [
0 => [
'name' => 'civilite',
'required' => true,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
'validators' => [
0 => [
'name' => \Zend\Validator\StringLength::class,
'options' => [
'min' => 1,
'max' => 5,
],
],
],
],
1 => [
'name' => 'dateNaissance',
'required' => true,
'filters' => [],
'validators' => [],
],
2 => [
'name' => 'nationalite',
'required' => false,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
'validators' => [],
],
3 => [
'name' => 'email',
'required' => false,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
'validators' => [
0 => [
'name' => \Zend\Validator\StringLength::class,
'options' => [
'min' => 1,
'max' => 255,
],
],
],
],
4 => [
'name' => 'nomPatronymique',
'required' => true,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
'validators' => [
0 => [
'name' => \Zend\Validator\StringLength::class,
'options' => [
'min' => 1,
'max' => 60,
],
],
],
],
5 => [
'name' => 'nomUsuel',
'required' => true,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
'validators' => [
0 => [
'name' => \Zend\Validator\StringLength::class,
'options' => [
'min' => 1,
'max' => 60,
],
],
],
],
6 => [
'name' => 'prenom',
'required' => true,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
'validators' => [
0 => [
'name' => \Zend\Validator\StringLength::class,
'options' => [
'min' => 1,
'max' => 60,
],
],
],
],
7 => [
'name' => 'prenoms',
'required' => true,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
'validators' => [
0 => [
'name' => \Zend\Validator\StringLength::class,
'options' => [
'min' => 1,
'max' => 100,
],
],
],
],
8 => [
'name' => 'tel',
'required' => false,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
'validators' => [
0 => [
'name' => \Zend\Validator\StringLength::class,
'options' => [
'min' => 1,
'max' => 20,
],
],
],
],
9 => [
'name' => 'sourceCode',
'required' => false,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
'validators' => [
0 => [
'name' => \Zend\Validator\StringLength::class,
'options' => [
'min' => 1,
'max' => 100,
],
],
],
],
10 => [
'name' => 'histoCreation',
'required' => true,
'filters' => [],
'validators' => [],
],
11 => [
'name' => 'histoDestruction',
'required' => false,
'filters' => [],
'validators' => [],
],
12 => [
'name' => 'histoModification',
'required' => true,
'filters' => [],
'validators' => [],
],
],
],
];
<?php
namespace FirstRest\V1\Entity\Db;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
/**
* Doctorant
*/
class Doctorant
{
/**
* @var integer
*/
protected $id;
/**
* @var string
*/
protected $civilite;
/**
* @var string
*/
protected $nationalite;
/**
* @var \DateTime
*/
protected $dateNaissance;
/**
* @var string
*/
protected $email;
/**
* @var string
*/
protected $nomPatronymique;
/**
* @var string
*/
protected $nomUsuel;
/**
* @var string
*/
protected $prenom;
/**
* @var string
*/
protected $prenoms;
/**
* @var string
*/
protected $sourceCode;
/**
* @var string
*/
protected $tel;
/**
* @var Collection
*/
private $complements;
protected $histoCreation;
protected $histoDestruction;
protected $histoModification;
/**
* Constructor
*/
public function __construct()
{
$this->complements = new ArrayCollection();
}
/**
* Set dateNaissance
*
* @param \DateTime $dateNaissance
*
* @return self
*/
public function setDateNaissance($dateNaissance)
{
$this->dateNaissance = $dateNaissance;
return $this;
}
/**
* Get dateNaissance
*
* @return \DateTime
*/
public function getDateNaissance()
{
return $this->dateNaissance;
}
/**
* @return string
*/
public function getNationalite()
{
return $this->nationalite;
}
/**
* @param string $nationalite
* @return Doctorant
*/
public function setNationalite($nationalite)
{
$this->nationalite = $nationalite;
return $this;
}
/**
* Set email
*
* @param string $email
*
* @return self
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set nomPatronymique
*
* @param string $nomPatronymique
*
* @return self
*/
public function setNomPatronymique($nomPatronymique)
{
$this->nomPatronymique = $nomPatronymique;
return $this;
}
/**
* Get nomPatronymique
*
* @return string
*/
public function getNomPatronymique()
{
return $this->nomPatronymique;
}
/**
* Set nomUsuel
*
* @param string $nomUsuel
*
* @return self
*/
public function setNomUsuel($nomUsuel)
{
$this->nomUsuel = $nomUsuel;
return $this;
}
/**
* Get nomUsuel
*
* @return string
*/
public function getNomUsuel()
{
return $this->nomUsuel;
}
/**
* Set prenom
*
* @param string $prenom
*
* @return self
*/
public function setPrenom($prenom)
{
$this->prenom = $prenom;
return $this;
}
/**
* Get prenom
*
* @param bool $tous
* @return string
*/
public function getPrenom($tous = false)
{
return $tous ? $this->prenoms : $this->prenom;
}
/**
* Get prenoms
*
* @return string
*/
public function getPrenoms()
{
return $this->prenoms;
}
/**
* Set prenoms
*
* @param string $prenoms
*
* @return self
*/
public function setPrenoms($prenoms)
{
$this->prenoms = $prenoms;
return $this;
}
/**
* Set sourceCode
*
* @param string $sourceCode
*
* @return self
*/
public function setSourceCode($sourceCode)
{
$this->sourceCode = $sourceCode;
return $this;
}
/**
* Get sourceCode
*
* @return string
*/
public function getSourceCode()
{
return $this->sourceCode;
}
/**
* Set tel
*
* @param string $tel
*
* @return self
*/
public function setTel($tel)
{
$this->tel = $tel;
return $this;
}
/**
* Get tel
*
* @return string
*/
public function getTel()
{
return $this->tel;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set civilite
*
* @param string $civilite
*
* @return self
*/
public function setCivilite($civilite)
{
$this->civilite = $civilite;
return $this;
}
/**
* Get civilite
*
* @return string
*/
public function getCivilite()
{
return $this->civilite;
}
/**
* Get civilite
*
* @return string
*/
public function getCiviliteToString()
{
return $this->getCivilite();
}
/**
* Get estUneFemme
*
* @return bool
*/
public function estUneFemme()
{
return 'Mme' === $this->getCivilite();
}
/**
* @return mixed
*/
public function getHistoCreation()
{
return $this->histoCreation;
}
/**
* @param mixed $histoCreation
*/
public function setHistoCreation($histoCreation)
{
$this->histoCreation = $histoCreation;
}
/**
* @return mixed
*/
public function getHistoDestruction()
{
return $this->histoDestruction;
}
/**
* @param mixed $histoDestruction
*/
public function setHistoDestruction($histoDestruction)
{
$this->histoDestruction = $histoDestruction;
}
/**
* @return mixed
*/
public function getHistoModification()
{
return $this->histoModification;
}
/**
* @param mixed $histoModification
*/
public function setHistoModification($histoModification)
{
$this->histoModification = $histoModification;
}
}
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="FirstRest\V1\Entity\Db\Doctorant" table="THESARD">
<id name="id" type="integer" column="ID">
<generator strategy="SEQUENCE"/>
</id>
<field name="civilite" type="string" column="CIVILITE" length="5" nullable="false"/>
<field name="dateNaissance" type="datetime" column="DATE_NAISSANCE" nullable="false"/>
<field name="nationalite" type="string" column="NATIONALITE" nullable="true"/>
<field name="email" type="string" column="EMAIL" length="255" nullable="true"/>
<field name="nomPatronymique" type="string" column="NOM_PATRONYMIQUE" length="60" nullable="false"/>
<field name="nomUsuel" type="string" column="NOM_USUEL" length="60" nullable="false"/>
<field name="prenom" type="string" column="PRENOM" length="60" nullable="false"/>
<field name="prenoms" type="string" column="PRENOMS" length="100" nullable="false"/>
<field name="tel" type="string" column="TEL" length="20" nullable="true"/>
<field name="sourceCode" type="string" column="SOURCE_CODE" length="100" nullable="true"/>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
<field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
</entity>
</doctrine-mapping>
<?php
namespace FirstRest\V1\Rest\Doctorant;
use Zend\Paginator\Paginator;
class DoctorantCollection extends Paginator
{
}
<?php
namespace FirstRest\V1\Rest\Doctorant;
use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;
class DoctorantResource extends DoctrineResource
{
}
<?php
namespace FirstRest\V1\Rest\Ping;
use Zend\Paginator\Paginator;
class PingCollection extends Paginator
{
}
<?php
namespace FirstRest\V1\Rest\Ping;
class PingEntity
{
protected $id;
protected $value;
/**
* PingEntity constructor.
*
* @param $id
* @param $value
*/
public function __construct($id, $value)
{
$this->id = $id;
$this->value = $value;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
* @return PingEntity
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* @return mixed
*/
public function getValue()
{
return $this->value;
}
/**
* @param mixed $value
* @return PingEntity
*/
public function setValue($value)
{
$this->value = $value;
return $this;
}
}
<?php
namespace FirstRest\V1\Rest\Ping;
use Zend\Paginator\Adapter\ArrayAdapter;
use ZF\ApiProblem\ApiProblem;
use ZF\Rest\AbstractResourceListener;
class PingResource extends AbstractResourceListener
{
/**
* Create a resource
*
* @param mixed $data
* @return ApiProblem|mixed
*/
public function create($data)
{
return new ApiProblem(405, 'The POST method has not been defined');
}
/**
* Delete a resource
*
* @param mixed $id
* @return ApiProblem|mixed
*/
public function delete($id)
{
return new ApiProblem(405, 'The DELETE method has not been defined for individual resources');
}
/**
* Delete a collection, or members of a collection
*
* @param mixed $data
* @return ApiProblem|mixed
*/
public function deleteList($data)
{
return new ApiProblem(405, 'The DELETE method has not been defined for collections');
}
/**
* Fetch a resource
*
* @param mixed $id
* @return ApiProblem|mixed
*/
public function fetch($id)
{
return new PingEntity(1, 1234);
}
/**
* Fetch all or a subset of resources
*
* @param array $params
* @return ApiProblem|mixed
*/
public function fetchAll($params = [])
{
return new PingCollection(new ArrayAdapter([
new PingEntity(1, 1234),
new PingEntity(2, 5678),
]));
}
/**
* Patch (partial in-place update) a resource
*
* @param mixed $id
* @param mixed $data
* @return ApiProblem|mixed
*/
public function patch($id, $data)
{
return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');
}
/**
* Patch (partial in-place update) a collection or members of a collection
*
* @param mixed $data
* @return ApiProblem|mixed
*/
public function patchList($data)
{
return new ApiProblem(405, 'The PATCH method has not been defined for collections');
}
/**
* Replace a collection or members of a collection
*
* @param mixed $data
* @return ApiProblem|mixed
*/
public function replaceList($data)
{
return new ApiProblem(405, 'The PUT method has not been defined for collections');
}
/**
* Update a resource
*
* @param mixed $id
* @param mixed $data
* @return ApiProblem|mixed
*/
public function update($id, $data)
{
return new ApiProblem(405, 'The PUT method has not been defined for individual resources');
}
}
<?php
namespace FirstRest\V1\Rest\Ping;
class PingResourceFactory
{
public function __invoke($services)
{
return new PingResource();
}
}
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ImportData\V1\Entity\Db\These" table="APOGEE.OBJECTH_THESE">
<id name="id" type="integer" column="ID"/>
<field name="individuId" type="integer" column="INDIVIDU_ID" nullable="true"/>
<field name="title" type="string" column="LIB_THS" length="800" nullable="true"/>
<field name="etatThese" type="string" column="ETA_THS" length="1" nullable="true"/>
<field name="uniteRechId" type="string" column="COD_EQR" length="10" nullable="true"/>
<field name="ecoleDoctId" type="string" column="COD_NAT_EDO" length="4" nullable="true"/>
<field name="libDiscipline" type="integer" column="COD_DIS" nullable="true"/>
<field name="libEtabCotut" type="string" column="LIB_ETB_COT" length="120" nullable="true"/>
<field name="libPaysCotut" type="string" column="LIB_PAY" length="40" nullable="true"/>
<field name="datePremiereInsc" type="datetime" column="DAT_DEB_THS" nullable="true"/>
<field name="dateSoutenanceAutorisee" type="datetime" column="DAT_AUT_SOU_THS" nullable="true"/>
<field name="dateSoutenancePrev" type="datetime" column="DAT_PREV_SOU" nullable="true"/>
<field name="dateSoutenance" type="datetime" column="DAT_SOU_THS" nullable="true"/>
<field name="dateConfidFin" type="datetime" column="DAT_FIN_CFD_THS" nullable="true"/>
<field name="resultat" type="string" column="COD_NEG_TRE" length="1" nullable="true"/>
<field name="correctionAutorisee" type="string" column="CORRECTION_POSSIBLE" length="1" nullable="true"/>
<!--<field name="source_code" type="integer" column="ID" nullable="true"/>&ndash;&gt;-->
</entity>
</doctrine-mapping>
<?php
namespace ImportData\V1\Entity\Db;
/**
* Doctorant
*/
class These
{
/**
* @var integer
*/
protected $id;
protected $title;
protected $individuId;
protected $etatThese;
protected $uniteRechId;
protected $ecoleDoctId;
protected $libDiscipline;
protected $libEtabCotut;
protected $libPaysCotut;
protected $datePremiereInsc;
protected $dateSoutenanceAutorisee;
protected $dateSoutenancePrev;
protected $dateSoutenance;
protected $dateConfidFin;
protected $resultat;
protected $correctionAutorisee;
protected $sourceCode;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getTitle()
{
return $this->title;
}
/**
* @param mixed $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return mixed
*/
public function getIndividuId()
{
return $this->individuId;
}
/**
* @param mixed $individuId
*/
public function setIndividuId($individuId)
{
$this->individuId = $individuId;
}
/**
* @return mixed
*/
public function getEtatThese()
{
return $this->etatThese;
}
/**
* @param mixed $etatThese
*/
public function setEtatThese($etatThese)
{
$this->etatThese = $etatThese;
}
/**
* @return mixed
*/
public function getUniteRechId()
{
return $this->uniteRechId;
}
/**
* @param mixed $uniteRechId
*/
public function setUniteRechId($uniteRechId)
{
$this->uniteRechId = $uniteRechId;
}
/**
* @return mixed
*/
public function getEcoleDoctId()
{
return $this->ecoleDoctId;
}
/**
* @param mixed $ecoleDoctId
*/
public function setEcoleDoctId($ecoleDoctId)
{
$this->ecoleDoctId = $ecoleDoctId;
}
/**
* @return mixed
*/
public function getLibDiscipline()
{
return $this->libDiscipline;
}
/**
* @param mixed $libDiscipline
*/
public function setLibDiscipline($libDiscipline)
{
$this->libDiscipline = $libDiscipline;
}
/**
* @return mixed
*/
public function getLibEtabCotut()
{
return $this->libEtabCotut;
}
/**
* @param mixed $libEtabCotut
*/
public function setLibEtabCotut($libEtabCotut)
{
$this->libEtabCotut = $libEtabCotut;
}
/**
* @return mixed
*/
public function getLibPaysCotut()
{
return $this->libPaysCotut;
}
/**
* @param mixed $libPaysCotut
*/
public function setLibPaysCotut($libPaysCotut)
{
$this->libPaysCotut = $libPaysCotut;
}
/**
* @return mixed
*/
public function getDatePremiereInsc()
{
return $this->datePremiereInsc;
}
/**
* @param mixed $datePremiereInsc
*/
public function setDatePremiereInsc($datePremiereInsc)
{
$this->datePremiereInsc = $datePremiereInsc;
}
/**
* @return mixed
*/
public function getDateSoutenanceAutorisee()
{
return $this->dateSoutenanceAutorisee;
}
/**
* @param mixed $dateSoutenanceAutorisee
*/
public function setDateSoutenanceAutorisee($dateSoutenanceAutorisee)
{
$this->dateSoutenanceAutorisee = $dateSoutenanceAutorisee;
}
/**
* @return mixed
*/
public function getDateSoutenancePrev()
{
return $this->dateSoutenancePrev;
}
/**
* @param mixed $dateSoutenancePrev
*/
public function setDateSoutenancePrev($dateSoutenancePrev)
{
$this->dateSoutenancePrev = $dateSoutenancePrev;
}
/**
* @return mixed
*/
public function getDateSoutenance()
{
return $this->dateSoutenance;
}
/**
* @param mixed $dateSoutenance
*/
public function setDateSoutenance($dateSoutenance)
{
$this->dateSoutenance = $dateSoutenance;
}
/**
* @return mixed
*/
public function getDateConfidFin()
{
return $this->dateConfidFin;
}
/**
* @param mixed $dateConfidFin
*/
public function setDateConfidFin($dateConfidFin)
{
$this->dateConfidFin = $dateConfidFin;
}
/**
* @return mixed
*/
public function getResultat()
{
return $this->resultat;
}
/**
* @param mixed $resultat
*/
public function setResultat($resultat)
{
$this->resultat = $resultat;
}
/**
* @return mixed
*/
public function getCorrectionAutorisee()
{
return $this->correctionAutorisee;
}
/**
* @param mixed $correctionAutorisee
*/
public function setCorrectionAutorisee($correctionAutorisee)
{
$this->correctionAutorisee = $correctionAutorisee;
}
/**
* @return mixed
*/
public function getSourceCode()
{
return $this->sourceCode;
}
/**
* @param mixed $sourceCode
*/
public function setSourceCode($sourceCode)
{
$this->sourceCode = $sourceCode;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment