Api\StructType\ApiFareItinerary::addToThirdSegmentsIds PHP Method

addToThirdSegmentsIds() public method

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