for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Grandstream-XMLApp
*
* Copyright (c) 2017 pudelek.org.pl
* @license MIT License (MIT)
* For the full copyright and license information, please view source file
* that is bundled with this package in the file LICENSE
* @author Marcin Pudełek <[email protected]>
*/
namespace mrcnpdlk\Grandstream\XMLApp\Application\Model;
use mrcnpdlk\Grandstream\XMLApp\Application\Model\Components\ElemInterface;
* Class Container
* @package mrcnpdlk\Grandstream\XMLApp\Application\Model\Components
class Container
{
* @var \mrcnpdlk\Grandstream\XMLApp\Application\Model\Components\ElemInterface[]
private $tElements = [];
public function __construct()
}
* @param \mrcnpdlk\Grandstream\XMLApp\Application\Model\Components\ElemInterface $oElement
* @return $this
public function addElement(ElemInterface $oElement)
$this->tElements[] = $oElement;
return $this;
* @param int $iX
* @param int $iY
public function move(int $iX, int $iY)
foreach ($this->tElements as $element) {
$element->move($iX, $iY);
* @return \mrcnpdlk\Grandstream\XMLApp\Application\Model\Components\ElemInterface[]
public function getElements()
return $this->tElements;