PHP
Name the syntax
TPS/Sorter project
Name the pet
100

This is the latest supported version of PHP

What is 8.3?

100

Is the name of this syntax operator used in this example:

$c = $a % $b

what is Modulo?

100

This is the number of available chutes in the sorter machine

what is 25?

100

picture 1

Who is tux?

200

Is the name of the dependency management tool in PHP. It allows you to declare the libraries you want to use in the project, and it will install, update and autoload them for you.

What is Composer?

200

Name of the of syntax used in this example:

$x = expr1 ? expr2 : expr3

What is Ternary operator?

200

Name 3 filters used to filter parcels (extra points if you can name 5)

Barcode, box barcode, mawb code, type, import custom status, parcel source, scanned, scanned from and to

200

picture 2

who is elePHPant?

300

These functions are anonymous, meaning they are declared and used without a name.

What is a lambda function in PHP?

300

Is the name of this syntax operator:

??

What is the Null coalescing operator?

300

Currently in the Sorter Prod, there are 5 existing parcel filters types, could you name 3 of them?

TEST FILTER 1, Pre Clearance, Last Mile Provider, MAWB Code and Destination Airport

300

picture 3

who is gopher?

400

These are the 3 visibility levels available for PHP classes

What is private, public and protected?

400

Is the name of this syntax operator:

?:

what is the elvis operator?

400
Two examples of cron jobs in the TPS project

app:sync-cron-intervals, parcel-tracking-send-arrival-confirmation, app:sync-parcel-details-error-check, send-approved-parcels-daily-report, app:create-parcel-tracking-webhooks, app:trigger-parcel-tracking-webhooks, app:sync-parcel-details, app:create-parcel-details-synchronization-information, app:send-mawb-data, app:webhooks-failed-alert

400

picture 4

who is Slonik?

500

This is the mechanism that provides some of the reuse advantages of multiple inheritance in languages like PHP where multiple inheritance is not supported

What are Traits?

500

Is the name of this syntax operator used in this example:

echo 1 <=> 1; // 0


What is the Spaceship operator?

500

These are 3 examples of webhook events in the Sorter project

PARCEL_TRACKED, OUTBOUND, PARCEL_MEASURED, PARCEL_WEIGHED and PARCEL_TRACKED

500

picture 5

who is Sakila?

M
e
n
u