protected function createProperty($name, Type $type, $default = null)
{
$propertyName = $this->getNaming()->getPropertyName($name);
$property = new Stmt\PropertyProperty($propertyName);
if ($default !== null) {
$property->default = new Expr\ConstFetch(new Name($default));
}
return new Stmt\Property(Stmt\Class_::MODIFIER_PROTECTED, [$property], ['comments' => [$this->createPropertyDoc($type)]]);
}