ruạṛ
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * PrintTaskDefinition File * PHP version 7 * * @category Library * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All rights reserved. * @license https://opensource.org/licenses/MIT MIT License * @link https://graph.microsoft.com */ namespace Microsoft\Graph\Model; /** * PrintTaskDefinition class * * @category Model * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All rights reserved. * @license https://opensource.org/licenses/MIT MIT License * @link https://graph.microsoft.com */ class PrintTaskDefinition extends Entity { /** * Gets the createdBy * The application that created the printTaskDefinition. Read-only. * * @return AppIdentity|null The createdBy */ public function getCreatedBy() { if (array_key_exists("createdBy", $this->_propDict)) { if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\AppIdentity") || is_null($this->_propDict["createdBy"])) { return $this->_propDict["createdBy"]; } else { $this->_propDict["createdBy"] = new AppIdentity($this->_propDict["createdBy"]); return $this->_propDict["createdBy"]; } } return null; } /** * Sets the createdBy * The application that created the printTaskDefinition. Read-only. * * @param AppIdentity $val The createdBy * * @return PrintTaskDefinition */ public function setCreatedBy($val) { $this->_propDict["createdBy"] = $val; return $this; } /** * Gets the displayName * The name of the printTaskDefinition. * * @return string|null The displayName */ public function getDisplayName() { if (array_key_exists("displayName", $this->_propDict)) { return $this->_propDict["displayName"]; } else { return null; } } /** * Sets the displayName * The name of the printTaskDefinition. * * @param string $val The displayName * * @return PrintTaskDefinition */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the tasks * A list of tasks that have been created based on this definition. The list includes currently running tasks and recently completed tasks. Read-only. * * @return array|null The tasks */ public function getTasks() { if (array_key_exists("tasks", $this->_propDict)) { return $this->_propDict["tasks"]; } else { return null; } } /** * Sets the tasks * A list of tasks that have been created based on this definition. The list includes currently running tasks and recently completed tasks. Read-only. * * @param PrintTask[] $val The tasks * * @return PrintTaskDefinition */ public function setTasks($val) { $this->_propDict["tasks"] = $val; return $this; } }
cải xoăn