1 | <?php |
||
20 | class PerformanceEventsController extends Controller |
||
21 | { |
||
22 | const MAX_DAYS_PER_GET = 367; |
||
23 | |||
24 | /** |
||
25 | * @ApiDoc( |
||
26 | * resource=true, |
||
27 | * description="Returns a collection of theatre performanceEvents", |
||
28 | * statusCodes={ |
||
29 | * 200="Returned when all parameters were correct", |
||
30 | * 400="Returned when date diff more than 1 year", |
||
31 | * }, |
||
32 | * output = "array<AppBundle\Model\PerformanceEventsResponse>" |
||
33 | * ) |
||
34 | * |
||
35 | * @QueryParam( |
||
36 | * name="fromDate", |
||
37 | * default="today", |
||
38 | * requirements="\d{2}-\d{2}-\d{4}|today" , |
||
39 | * description="Find entries from this date, fromat=dd-mm-yyyy" |
||
40 | * ) |
||
41 | * @QueryParam( |
||
42 | * name="toDate", |
||
43 | * default="+1 Year", |
||
44 | * requirements="\d{2}-\d{2}-\d{4}|\+1 Year", |
||
45 | * description="Find entries to this date, fromat=dd-mm-yyyy" |
||
46 | * ) |
||
47 | * @QueryParam(name="limit", default="all", requirements="\d+|all" , description="Count of entities in collection") |
||
48 | * @QueryParam(name="performance", description="Performance slug") |
||
49 | * @QueryParam( |
||
50 | * name="locale", |
||
51 | * requirements="^[a-zA-Z]+", |
||
52 | * default="uk", |
||
53 | * description="Selects language of data you want to receive" |
||
54 | * ) |
||
55 | 2 | * |
|
56 | * @RestView |
||
57 | 2 | */ |
|
58 | public function cgetAction(ParamFetcher $paramFetcher) |
||
116 | |||
117 | /** |
||
118 | * @ApiDoc( |
||
119 | * resource=true, |
||
120 | * description="Returns one PerformanceEvent by Id", |
||
121 | * statusCodes={ |
||
122 | * 200="Returned when PerformanceEvent by id was found in database", |
||
123 | * 404="Returned when PerformanceEvent by id was not found id database", |
||
124 | * }, |
||
125 | * parameters={ |
||
126 | * {"name"="id", "dataType"="string", "required"=true, "description"="PerformanceEvent id"} |
||
127 | * }, |
||
128 | * output = "AppBundle\Entity\PerformanceEvent", |
||
129 | 1 | * deprecated = true |
|
130 | * ) |
||
131 | 1 | * |
|
132 | * @QueryParam( |
||
133 | 1 | * name="locale", |
|
134 | * requirements="^[a-zA-Z]+", |
||
135 | 1 | * default="uk", |
|
136 | 1 | * description="Selects language of data you want to receive" |
|
137 | * ) |
||
138 | * |
||
139 | 1 | * @RestView |
|
140 | 1 | */ |
|
141 | public function getAction(ParamFetcher $paramFetcher, $id) |
||
174 | |||
175 | /** |
||
176 | * @RestView(serializerGroups={"cget_ticket"}) |
||
177 | * @ParamConverter("performanceEvent", class="AppBundle:PerformanceEvent") |
||
178 | */ |
||
179 | public function cgetTicketsAction(PerformanceEvent $performanceEvent) |
||
188 | } |
||
189 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.