Api\StructType\ApiFareItinerary::addToThirdSegmentsIds PHP 메소드

addToThirdSegmentsIds() 공개 메소드

Add item to thirdSegmentsIds value
public addToThirdSegmentsIds ( integer $item ) : ApiFareItinerary
$item integer
리턴 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;
    }