Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
namespace Packback\Lti1p3;
4
 
5
use Packback\Lti1p3\Interfaces\ILtiDeployment;
6
 
7
class LtiDeployment implements ILtiDeployment
8
{
9
    public function __construct(
10
        private $deployment_id
11
    ) {
12
    }
13
 
14
    public static function new($deployment_id): self
15
    {
16
        return new LtiDeployment($deployment_id);
17
    }
18
 
19
    public function getDeploymentId()
20
    {
21
        return $this->deployment_id;
22
    }
23
 
24
    public function setDeploymentId($deployment_id): self
25
    {
26
        $this->deployment_id = $deployment_id;
27
 
28
        return $this;
29
    }
30
}