LineItem::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( $targeting = null, $creativeTargetings = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $videoMaxDuration = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = null )
        public function __construct($targeting = null, $creativeTargetings = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $videoMaxDuration = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = null)
        {
            parent::__construct();
            $this->targeting = $targeting;
            $this->creativeTargetings = $creativeTargetings;
            $this->orderId = $orderId;
            $this->id = $id;
            $this->name = $name;
            $this->externalId = $externalId;
            $this->orderName = $orderName;
            $this->startDateTime = $startDateTime;
            $this->startDateTimeType = $startDateTimeType;
            $this->endDateTime = $endDateTime;
            $this->autoExtensionDays = $autoExtensionDays;
            $this->unlimitedEndDateTime = $unlimitedEndDateTime;
            $this->creativeRotationType = $creativeRotationType;
            $this->deliveryRateType = $deliveryRateType;
            $this->roadblockingType = $roadblockingType;
            $this->frequencyCaps = $frequencyCaps;
            $this->lineItemType = $lineItemType;
            $this->priority = $priority;
            $this->costPerUnit = $costPerUnit;
            $this->valueCostPerUnit = $valueCostPerUnit;
            $this->costType = $costType;
            $this->discountType = $discountType;
            $this->discount = $discount;
            $this->contractedUnitsBought = $contractedUnitsBought;
            $this->creativePlaceholders = $creativePlaceholders;
            $this->activityAssociations = $activityAssociations;
            $this->environmentType = $environmentType;
            $this->companionDeliveryOption = $companionDeliveryOption;
            $this->creativePersistenceType = $creativePersistenceType;
            $this->allowOverbook = $allowOverbook;
            $this->skipInventoryCheck = $skipInventoryCheck;
            $this->skipCrossSellingRuleWarningChecks = $skipCrossSellingRuleWarningChecks;
            $this->reserveAtCreation = $reserveAtCreation;
            $this->stats = $stats;
            $this->deliveryIndicator = $deliveryIndicator;
            $this->deliveryData = $deliveryData;
            $this->budget = $budget;
            $this->status = $status;
            $this->reservationStatus = $reservationStatus;
            $this->isArchived = $isArchived;
            $this->webPropertyCode = $webPropertyCode;
            $this->appliedLabels = $appliedLabels;
            $this->effectiveAppliedLabels = $effectiveAppliedLabels;
            $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion;
            $this->lastModifiedByApp = $lastModifiedByApp;
            $this->notes = $notes;
            $this->lastModifiedDateTime = $lastModifiedDateTime;
            $this->creationDateTime = $creationDateTime;
            $this->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled;
            $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority;
            $this->customFieldValues = $customFieldValues;
            $this->isSetTopBoxEnabled = $isSetTopBoxEnabled;
            $this->isMissingCreatives = $isMissingCreatives;
            $this->setTopBoxDisplayInfo = $setTopBoxDisplayInfo;
            $this->videoMaxDuration = $videoMaxDuration;
            $this->primaryGoal = $primaryGoal;
            $this->secondaryGoals = $secondaryGoals;
            $this->grpSettings = $grpSettings;
        }

Same methods

LineItem::__construct ( $targeting = null, $creativeTargetings = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $videoMaxDuration = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = null )

Usage Example

 public function __construct($data = null)
 {
     parent::__construct($data);
     if ($data) {
         $this->body = isset($data->body) ? $data->body : null;
         $this->toList = isset($data->toList) ? $data->toList : null;
         $this->ccList = isset($data->ccList) ? $data->ccList : null;
         $this->bccList = isset($data->bccList) ? $data->bccList : null;
         $this->state = isset($data->state) ? $data->state : null;
         $this->type = isset($data->type) ? $data->type : null;
         $this->openedAt = isset($data->openedAt) ? $data->openedAt : null;
         if ($data->customer) {
             $this->customer = new \HelpScout\model\ref\PersonRef($data->customer);
         }
         if ($data->attachments) {
             $this->attachments = array();
             foreach ($data->attachments as $at) {
                 $this->attachments[] = new \HelpScout\model\Attachment($at);
             }
         }
     }
 }