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

addToSecondSegmentsIds() 공개 메소드

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