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\ContainerAnalysis; 19 20class Link extends \Google\Collection 21{ 22 protected $collection_key = 'products'; 23 protected $byproductsType = ByProducts::class; 24 protected $byproductsDataType = ''; 25 public $command; 26 protected $environmentType = Environment::class; 27 protected $environmentDataType = ''; 28 protected $materialsType = GrafeasV1beta1IntotoArtifact::class; 29 protected $materialsDataType = 'array'; 30 protected $productsType = GrafeasV1beta1IntotoArtifact::class; 31 protected $productsDataType = 'array'; 32 33 /** 34 * @param ByProducts 35 */ 36 public function setByproducts(ByProducts $byproducts) 37 { 38 $this->byproducts = $byproducts; 39 } 40 /** 41 * @return ByProducts 42 */ 43 public function getByproducts() 44 { 45 return $this->byproducts; 46 } 47 public function setCommand($command) 48 { 49 $this->command = $command; 50 } 51 public function getCommand() 52 { 53 return $this->command; 54 } 55 /** 56 * @param Environment 57 */ 58 public function setEnvironment(Environment $environment) 59 { 60 $this->environment = $environment; 61 } 62 /** 63 * @return Environment 64 */ 65 public function getEnvironment() 66 { 67 return $this->environment; 68 } 69 /** 70 * @param GrafeasV1beta1IntotoArtifact[] 71 */ 72 public function setMaterials($materials) 73 { 74 $this->materials = $materials; 75 } 76 /** 77 * @return GrafeasV1beta1IntotoArtifact[] 78 */ 79 public function getMaterials() 80 { 81 return $this->materials; 82 } 83 /** 84 * @param GrafeasV1beta1IntotoArtifact[] 85 */ 86 public function setProducts($products) 87 { 88 $this->products = $products; 89 } 90 /** 91 * @return GrafeasV1beta1IntotoArtifact[] 92 */ 93 public function getProducts() 94 { 95 return $this->products; 96 } 97} 98 99// Adding a class alias for backwards compatibility with the previous class name. 100class_alias(Link::class, 'Google_Service_ContainerAnalysis_Link'); 101