Пример #1
0
 /**
  * @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;
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function setLeft($left)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setLeft', array($left));
     return parent::setLeft($left);
 }