/
AssetUsageInNodeProperties.php
89 lines (78 loc) · 1.86 KB
/
AssetUsageInNodeProperties.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
namespace Neos\Neos\Domain\Model\Dto;
/*
* This file is part of the Neos.Neos package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/
use Neos\Media\Domain\Model\AssetInterface;
use Neos\Media\Domain\Model\Dto\UsageReference;
/**
* A DTO for storing information related to a usage of an asset in node properties.
*/
class AssetUsageInNodeProperties extends UsageReference
{
/**
* @var string
*/
protected $nodeIdentifier;
/**
* @var string
*/
protected $workspaceName;
/**
* @var array
*/
protected $dimensionValues;
/**
* @var string
*/
protected $nodeTypeName;
/**
* @param AssetInterface $asset
* @param string $nodeIdentifier
* @param string $workspaceName
* @param array $dimensionValues
* @param string $nodeTypeName
*/
public function __construct(AssetInterface $asset, $nodeIdentifier, $workspaceName, $dimensionValues, $nodeTypeName)
{
parent::__construct($asset);
$this->nodeIdentifier = $nodeIdentifier;
$this->workspaceName = $workspaceName;
$this->dimensionValues = $dimensionValues;
$this->nodeTypeName = $nodeTypeName;
}
/**
* @return string
*/
public function getNodeIdentifier()
{
return $this->nodeIdentifier;
}
/**
* @return string
*/
public function getWorkspaceName()
{
return $this->workspaceName;
}
/**
* @return array
*/
public function getDimensionValues()
{
return $this->dimensionValues;
}
/**
* @return string
*/
public function getNodeTypeName()
{
return $this->nodeTypeName;
}
}