<?php

namespace Google\AdsApi\AdManager\v202208;


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

    /**
     * @var \Google\AdsApi\AdManager\v202208\DayPart[] $dayParts
     */
    protected $dayParts = null;

    /**
     * @var string $timeZone
     */
    protected $timeZone = null;

    /**
     * @param \Google\AdsApi\AdManager\v202208\DayPart[] $dayParts
     * @param string $timeZone
     */
    public function __construct(array $dayParts = null, $timeZone = null)
    {
      $this->dayParts = $dayParts;
      $this->timeZone = $timeZone;
    }

    /**
     * @return \Google\AdsApi\AdManager\v202208\DayPart[]
     */
    public function getDayParts()
    {
      return $this->dayParts;
    }

    /**
     * @param \Google\AdsApi\AdManager\v202208\DayPart[]|null $dayParts
     * @return \Google\AdsApi\AdManager\v202208\DayPartTargeting
     */
    public function setDayParts(array $dayParts = null)
    {
      $this->dayParts = $dayParts;
      return $this;
    }

    /**
     * @return string
     */
    public function getTimeZone()
    {
      return $this->timeZone;
    }

    /**
     * @param string $timeZone
     * @return \Google\AdsApi\AdManager\v202208\DayPartTargeting
     */
    public function setTimeZone($timeZone)
    {
      $this->timeZone = $timeZone;
      return $this;
    }

}
