1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\OnDemandScanning; 19 20class BuildOccurrence extends \Google\Model 21{ 22 protected $intotoProvenanceType = InTotoProvenance::class; 23 protected $intotoProvenanceDataType = ''; 24 protected $intotoStatementType = InTotoStatement::class; 25 protected $intotoStatementDataType = ''; 26 protected $provenanceType = BuildProvenance::class; 27 protected $provenanceDataType = ''; 28 /** 29 * @var string 30 */ 31 public $provenanceBytes; 32 33 /** 34 * @param InTotoProvenance 35 */ 36 public function setIntotoProvenance(InTotoProvenance $intotoProvenance) 37 { 38 $this->intotoProvenance = $intotoProvenance; 39 } 40 /** 41 * @return InTotoProvenance 42 */ 43 public function getIntotoProvenance() 44 { 45 return $this->intotoProvenance; 46 } 47 /** 48 * @param InTotoStatement 49 */ 50 public function setIntotoStatement(InTotoStatement $intotoStatement) 51 { 52 $this->intotoStatement = $intotoStatement; 53 } 54 /** 55 * @return InTotoStatement 56 */ 57 public function getIntotoStatement() 58 { 59 return $this->intotoStatement; 60 } 61 /** 62 * @param BuildProvenance 63 */ 64 public function setProvenance(BuildProvenance $provenance) 65 { 66 $this->provenance = $provenance; 67 } 68 /** 69 * @return BuildProvenance 70 */ 71 public function getProvenance() 72 { 73 return $this->provenance; 74 } 75 /** 76 * @param string 77 */ 78 public function setProvenanceBytes($provenanceBytes) 79 { 80 $this->provenanceBytes = $provenanceBytes; 81 } 82 /** 83 * @return string 84 */ 85 public function getProvenanceBytes() 86 { 87 return $this->provenanceBytes; 88 } 89} 90 91// Adding a class alias for backwards compatibility with the previous class name. 92class_alias(BuildOccurrence::class, 'Google_Service_OnDemandScanning_BuildOccurrence'); 93