for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Amadeus
*
* Copyright 2015 Amadeus Benelux NV
*/
namespace Amadeus\Client\Struct\Air\MultiAvailability;
* FlightIdentification
* @package Amadeus\Client\Struct\Air\MultiAvailability
* @author Dieter Devlieghere <[email protected]>
class FlightIdentification
{
* IATA code for the airline
* @var string
public $airlineCode;
* Flight number
public $number;
* Flight suffix
public $suffix;
* FlightIdentification constructor.
* @param string $airline Airline code
* @param string $flightNumber
$flightNumber
string|null
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
public function __construct($airline, $flightNumber = null)
$this->airlineCode = $airline;
$this->number = $flightNumber;
}
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.