for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Bukashk0zzzYmlGenerator
*
* (c) Denis Golubovskiy <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bukashk0zzz\YmlGenerator\Model;
/**
* Class Category
class Category
{
* @var int
private $id;
private $parentId;
* @var string
private $name;
* @var array
private $attributes = [];
* @return int
public function getId()
return $this->id;
}
* @param int $id
* @return Category
public function setId($id)
$this->id = $id;
return $this;
public function getParentId()
return $this->parentId;
* @param int $parentId
public function setParentId($parentId)
$this->parentId = $parentId;
* @return string
public function getName()
return $this->name;
* @param string $name
public function setName($name)
$this->name = $name;
* @return array
public function getAttributes()
return $this->attributes;
* Sets list of custom attributes (Array of arrays [['name' => ?, 'value' => ?]])
* @param array $attributes
public function setAttributes(array $attributes)
$this->attributes = $attributes;
* @param string $attributeName
* @param mixed $value
public function pushAttribute(string $attributeName, $value)
array_push($this->attributes, ['name' => $attributeName, 'value' => $value]);