<?php

namespace Google\AdsApi\AdManager\v202211;


/**
 * This file was generated from WSDL. DO NOT EDIT.
 */
class ContendingLineItem
{

    /**
     * @var int $lineItemId
     */
    protected $lineItemId = null;

    /**
     * @var int $contendingImpressions
     */
    protected $contendingImpressions = null;

    /**
     * @param int $lineItemId
     * @param int $contendingImpressions
     */
    public function __construct($lineItemId = null, $contendingImpressions = null)
    {
      $this->lineItemId = $lineItemId;
      $this->contendingImpressions = $contendingImpressions;
    }

    /**
     * @return int
     */
    public function getLineItemId()
    {
      return $this->lineItemId;
    }

    /**
     * @param int $lineItemId
     * @return \Google\AdsApi\AdManager\v202211\ContendingLineItem
     */
    public function setLineItemId($lineItemId)
    {
      $this->lineItemId = (!is_null($lineItemId) && PHP_INT_SIZE === 4)
          ? floatval($lineItemId) : $lineItemId;
      return $this;
    }

    /**
     * @return int
     */
    public function getContendingImpressions()
    {
      return $this->contendingImpressions;
    }

    /**
     * @param int $contendingImpressions
     * @return \Google\AdsApi\AdManager\v202211\ContendingLineItem
     */
    public function setContendingImpressions($contendingImpressions)
    {
      $this->contendingImpressions = (!is_null($contendingImpressions) && PHP_INT_SIZE === 4)
          ? floatval($contendingImpressions) : $contendingImpressions;
      return $this;
    }

}
