__construct() public method

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($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);
             }
         }
     }
 }