Skip to content
This repository was archived by the owner on May 2, 2020. It is now read-only.

Commit c33b844

Browse files
committed
Merge pull request #60 from rvanlaarhoven/attribute-parameters
Added missing parameters property
2 parents f325101 + 416e084 commit c33b844

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Model/Attribute.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ class Attribute implements AttributeInterface
9999
**/
100100
protected $allowedTemplates;
101101

102+
/**
103+
* @var array
104+
*
105+
* @ORM\Column(name="parameters", type="json_array", nullable=true)
106+
*/
107+
protected $parameters;
108+
102109
/**
103110
* Constructor
104111
*/
@@ -441,4 +448,27 @@ public function setAllowedTemplates(ArrayCollection $allowedTemplates)
441448

442449
return $this;
443450
}
451+
452+
/**
453+
* Set parameters
454+
*
455+
* @param array $parameters
456+
* @return Attribute
457+
*/
458+
public function setParameters($parameters)
459+
{
460+
$this->parameters = $parameters;
461+
462+
return $this;
463+
}
464+
465+
/**
466+
* Get parameters
467+
*
468+
* @return array
469+
*/
470+
public function getParameters()
471+
{
472+
return $this->parameters;
473+
}
444474
}

0 commit comments

Comments
 (0)