src/ClearSaleID/Entity/Request/Connection.php
public static function create(
        $company,
        $flightNumber,
        DateTime $flightDate,
        $class,
        $from,
        $to,
        DateTime $departureDate,
        DateTime $arrivalDate
    ) {
        $instance = new self;

        $instance->setCompany( $company );
        $instance->setFlightNumber( $flightNumber );
        $instance->setFlightDate( $flightDate );
        $instance->setClass( $class );
        $instance->setFrom( $from );
        $instance->setTo( $to );
        $instance->setDepartureDate( $departureDate );
        $instance->setArrivalDate( $arrivalDate );

        return $instance;
    }
public static function create(
        $company,
        $flightNumber,
        DateTime $flightDate,
        $class,
        $from,
        $to,
        DateTime $departureDate,
        DateTime $arrivalDate
    ) {
        $instance = new self;

        $instance->setCompany( $company );
        $instance->setFlightNumber( $flightNumber );
        $instance->setFlightDate( $flightDate );
        $instance->setClass( $class );
        $instance->setFrom( $from );
        $instance->setTo( $to );
        $instance->setDepartureDate( $departureDate );
        $instance->setArrivalDate( $arrivalDate );

        return $instance;
    }
public static function create ( $ company , $ flightNumber , DateTime $ flightDate , $ class , $ from , $ to , DateTime $ departureDate , DateTime $ arrivalDate ) { $ instance = new self ; $ instance -> setCompany ( $ company ) ; $ instance -> setFlightNumber ( $ flightNumber ) ; $ instance -> setFlightDate ( $ flightDate ) ; $ instance -> setClass ( $ class ) ; $ instance -> setFrom ( $ from ) ; $ instance -> setTo ( $ to ) ; $ instance -> setDepartureDate ( $ departureDate ) ; $ instance -> setArrivalDate ( $ arrivalDate ) ; return $ instance ; }
@param  string    $company
@param  string    $flightNumber
@param  \DateTime $flightDate
@param  string    $class
@param  string    $from
@param  string    $to
@param  \DateTime $departureDate
@param  \DateTime $arrivalDate

@return \RodrigoPedra\ClearSaleID\Entity\Request\Connection
@param string $company @param string $flightNumber @param \ DateTime $flightDate @param string $class @param string $from @param string $to @param \ DateTime $departureDate @param \ DateTime $arrivalDate