for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PostmanGeneratorBundle package.
*
* (c) Vincent Chalamon <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PostmanGeneratorBundle\Model;
class Folder
{
/**
* @var string
private $id;
private $name;
* @var int
private $owner = 0;
* @var Collection
private $collection;
* @var array
private $order = [];
* @var Request[]
private $requests = [];
* @return string
public function getId()
return $this->id;
}
* @param string $id
public function setId($id)
$this->id = $id;
public function getName()
return $this->name;
* @param string $name
public function setName($name)
$this->name = $name;
* @return int
public function getOwner()
return $this->owner;
* @param int $owner
public function setOwner($owner)
$this->owner = $owner;
* @return Collection
public function getCollection()
return $this->collection;
* @param Collection $collection
public function setCollection(Collection $collection)
$this->collection = $collection;
* @return array
public function getOrder()
return $this->order;
* @param array $order
public function setOrder($order)
$this->order = $order;
* @return Request[]
public function getRequests()
return $this->requests;
* @param Request[] $requests
public function setRequests($requests)
$this->requests = [];
foreach ($requests as $request) {
$this->addRequest($request);
* @param Request $request
public function addRequest(Request $request)
$request->setFolder($this);
$this->order[] = $request->getId();
$this->requests[] = $request;