/** * @param string $name * @param string $description * @param int $weight * * @return Cargo */ public function create($name, $description) { $cargo = new Cargo(); $cargo->setNome($name); $cargo->setDescricao($description); $cargo->setLeft(1); $cargo->setRight(2); $cargo->setLevel(0); return $cargo; }
/** * {@inheritDoc} */ public function setLeft($left) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setLeft', array($left)); return parent::setLeft($left); }