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