\Chill\ReportBundle\DataFixtures\ORMLoadReports

Load reports into DB

Summary

Methods
Properties
Constants
__construct()
getOrder()
load()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
createRandom()
createExpected()
getPeopleRandom()
fillReport()
getRandomChoice()
pickChoice()
$faker
N/A

Properties

$faker

$faker : \Faker\Generator

Type

\Faker\Generator

Methods

__construct()

__construct() 

getOrder()

getOrder() 

load()

load(\Doctrine\Common\Persistence\ObjectManager  $manager) 

Parameters

\Doctrine\Common\Persistence\ObjectManager $manager

createRandom()

createRandom(\Doctrine\Common\Persistence\ObjectManager  $manager,   $percentage) 

Parameters

\Doctrine\Common\Persistence\ObjectManager $manager
$percentage

createExpected()

createExpected(\Doctrine\Common\Persistence\ObjectManager  $manager) 

Parameters

\Doctrine\Common\Persistence\ObjectManager $manager

getPeopleRandom()

getPeopleRandom(  $percentage) 

Parameters

$percentage

fillReport()

fillReport(\Chill\ReportBundle\Entity\Report  $report) 

Parameters

\Chill\ReportBundle\Entity\Report $report

getRandomChoice()

getRandomChoice(\Chill\CustomFieldsBundle\Entity\CustomField  $field) : array<mixed,string>|string

pick a random choice

Parameters

\Chill\CustomFieldsBundle\Entity\CustomField $field

Returns

array<mixed,string>|string —

the array of slug if multiple, a single slug otherwise

pickChoice()

pickChoice(array  $choices) : \Chill\ReportBundle\DataFixtures\ORM\the

pick a choice within a 'choices' options (for choice type)

Parameters

array $choices

Returns

\Chill\ReportBundle\DataFixtures\ORM\the —

slug of the selected choice