-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathParams.php
70 lines (56 loc) · 1.26 KB
/
Params.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
declare(strict_types=1);
namespace Deviantintegral\Har;
use Deviantintegral\Har\SharedFields\CommentTrait;
use Deviantintegral\Har\SharedFields\NameValueTrait;
use JMS\Serializer\Annotation as Serializer;
/**
* @see http://www.softwareishard.com/blog/har-12-spec/#params
*/
final class Params
{
use CommentTrait;
use NameValueTrait;
/**
* Name of a posted file.
*
* @var string
*
* @Serializer\Type("string")
*/
private $fileName;
/**
* Content type of a posted file.
*
* @var string
*
* @Serializer\Type("string")
*/
private $contentType;
public function hasFileName(): bool
{
return null !== $this->fileName;
}
public function getFileName(): ?string
{
return $this->fileName;
}
public function setFileName(string $fileName): self
{
$this->fileName = $fileName;
return $this;
}
public function hasContentType(): bool
{
return null !== $this->contentType;
}
public function getContentType(): ?string
{
return $this->contentType;
}
public function setContentType(string $contentType): self
{
$this->contentType = $contentType;
return $this;
}
}