Api\StructType\ApiFareItinerary::addToFirstSegmentsIds PHP Method

addToFirstSegmentsIds() public method

Add item to firstSegmentsIds value
public addToFirstSegmentsIds ( integer $item ) : ApiFareItinerary
$item integer
return ApiFareItinerary
    public function addToFirstSegmentsIds($item)
    {
        // validation for constraint: itemType
        if (!is_int($item)) {
            throw new \InvalidArgumentException(sprintf('The firstSegmentsIds property can only contain items of int, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
        }
        $this->firstSegmentsIds[] = $item;
        return $this;
    }