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

addToFirstSegmentsIds() 공개 메소드

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