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

  • DateTimeProvider
  • JobProvider
  • MandateProvider
  • StudentConventionProvider
  • UserProvider
  • Overview
  • Namespace
  • Class

Class MandateProvider

Faker provider for mandates.

Faker\Provider\DateTime
Extended by ApiBundle\DataFixtures\Faker\Provider\MandateProvider
Namespace: ApiBundle\DataFixtures\Faker\Provider
Author: Théo FIDRY theo.fidry@gmail.com
See: ApiBundle\Entity\Mandate
Located at ApiBundle/DataFixtures/Faker/Provider/MandateProvider.php
Methods summary
public DateTime
# endMandateDateTime( DateTime $startDate )

Generate a datetime starting from the date given and on a period going from 3 month to 2 years.

Generate a datetime starting from the date given and on a period going from 3 month to 2 years.

Parameters

$startDate

Returns

DateTime
public DateTime
# startMandateDateTime( string|integer $year = 'now' )

Generate a datetime from the year given.

Generate a datetime from the year given.

Parameters

$year
A year in integer or string format. If value is invalid, the current year is taken.

Returns

DateTime

Example

startMandateDateTime() -> DateTime('2015-05-30 19:28:21') startMandateDateTime('now') -> DateTime('2015-05-29 22:30:48') startMandateDateTime('2014') -> DateTime('2014-02-27 20:52:14') startMandateDateTime(2012) -> DateTime('2012-08-23 11:47:02')


API documentation generated by ApiGen