Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php declare(strict_types=1);
2
 
3
namespace EduSharingApiClient;
4
 
5
/**
6
 * Class CurlResult
7
 *
8
 * DTO class for curl results
9
 *
10
 * @author Torsten Simon  <simon@edu-sharing.net>
11
 */
12
class CurlResult
13
{
14
    public string $content;
15
    public int    $error;
16
    public array  $info;
17
 
18
    /**
19
     * CurlResult Constructor
20
     *
21
     * @param string $content
22
     * @param int $error
23
     * @param array $info
24
     */
25
    public function __construct(string $content, int $error, array $info) {
26
        $this->content = $content;
27
        $this->error   = $error;
28
        $this->info    = $info;
29
    }
30
}