Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #3
0
 /**
  * {@inheritdoc}
  */
 public function setName($name)
 {
     return parent::setName(Inflector::classify($name));
 }
Beispiel #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);
 }
Beispiel #5
0
 /**
  * {@inheritdoc}
  */
 public function setName($name)
 {
     return parent::setName(strtoupper(Inflector::tableize($name)));
 }
Beispiel #6
0
 /**
  * {@inheritdoc}
  */
 public function setName($name)
 {
     return parent::setName(Inflector::camelize($name));
 }