Ejemplo n.º 1
0
 /**
  * @param string $name
  * @param string $source
  * @param string $comment
  */
 public function __construct($name, $source = '', $comment = '')
 {
     parent::__construct($name);
     $this->parameters = new ParameterAggregator([]);
     $this->initSource($source);
     $this->initComment($comment);
 }
Ejemplo n.º 2
0
 /**
  * @param string $name
  * @param string $comment
  */
 public function __construct($name = '', $comment = '')
 {
     parent::__construct($name);
     //todo: Function declaration
     $this->elements = new DeclarationAggregator([ClassDeclaration::class, DocComment::class, Source::class]);
     $this->initComment($comment);
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function setName($name)
 {
     return parent::setName(Inflector::classify($name));
 }
Ejemplo n.º 4
0
 /**
  * @param string $name
  * @param null   $defaultValue
  * @param string $comment
  */
 public function __construct($name, $defaultValue = null, $comment = '')
 {
     parent::__construct($name);
     $this->setDefault($defaultValue);
     $this->initComment($comment);
 }
Ejemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 public function setName($name)
 {
     return parent::setName(strtoupper(Inflector::tableize($name)));
 }
Ejemplo n.º 6
0
 /**
  * {@inheritdoc}
  */
 public function setName($name)
 {
     return parent::setName(Inflector::camelize($name));
 }