Overview

Namespaces

  • ApiBundle
    • DataFixtures
      • Faker
        • Provider
    • DependencyInjection
    • Doctrine
      • DBAL
        • Type
      • ORM
        • Filter
          • User
    • Entity
    • EventListener
      • Doctrine
    • Manager
    • Utils
  • FrontBundle
    • Bundle
      • UserBundle
    • Client
      • Exception
    • Controller
    • DependencyInjection
    • Form
      • DataTransformer
      • Type
    • Menu
    • Security
      • Http
        • Authentication
    • Services
      • Http
    • Twig
    • Utils

Classes

  • Address
  • Job
  • Mandate
  • StudentConvention
  • User
  • Overview
  • Namespace
  • Class

Class Mandate

Namespace: ApiBundle\Entity
Author: Théo FIDRY theo.fidry@gmail.com
Orm\entity
Orm\entitylisteners({"apibundle\eventlistener\doctrine\mandatelistener"})
Orm\table
Uniqueentity("name")
Located at ApiBundle/Entity/Mandate.php
Methods summary
public
# __construct( )
public integer
# getId( )

Returns

integer
public
# setEndAt( DateTime $endAt = null )

Parameters

$endAt

Returns


$this
public DateTime|null
# getEndAt( )

Returns

DateTime|null
public
# setJobs( ApiBundle\Entity\Job[] $jobs )

Parameters

$jobs

Returns


$this

Throws

InvalidArgumentException
If jobs type is incorrect
public
# addJob( ApiBundle\Entity\Job $job )

Adds Job. Will automatically update job's mandate too.

Adds Job. Will automatically update job's mandate too.

Parameters

$job

Returns


$this

Throws

InvalidArgumentException
If job type is incorrect
public
# removeJob( ApiBundle\Entity\Job $job )

Removes job. Will automatically update job's mandate too.

Removes job. Will automatically update job's mandate too.

Parameters

$job

Returns


$this
public Doctrine\Common\Collections\ArrayCollection|ApiBundle\Entity\Job[]
# getJobs( )

Returns

Doctrine\Common\Collections\ArrayCollection|ApiBundle\Entity\Job[]
public
# setName( string $name )

Parameters

$name

Returns


$this
public string|null
# getName( )

Returns

string|null
public
# setStartAt( DateTime $startAt )

Parameters

$startAt

Returns


$this
public DateTime|null
# getStartAt( )

Returns

DateTime|null
API documentation generated by ApiGen