Exemple #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;
 }
 /**
  * {@inheritDoc}
  */
 public function __tostring()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, '__tostring', array());
     return parent::__tostring();
 }