Permalink
Browse files

Merge branch 'hotfix/3964' into develop

Forward port #3964
  • Loading branch information...
weierophinney committed Mar 12, 2013
2 parents 53534f2 + eb64a14 commit babe00b543a31a550b4550ac1a3872f6b0a30099
@@ -239,7 +239,6 @@ public function setName($name)
}
$this->name = $name;
return $this;
}
@@ -331,7 +330,6 @@ public function setFlags($flags)
public function addFlag($flag)
{
$this->setFlags($this->flags | $flag);
return $this;
}
@@ -342,7 +340,6 @@ public function addFlag($flag)
public function removeFlag($flag)
{
$this->setFlags($this->flags & ~$flag);
return $this;
}
@@ -387,7 +384,6 @@ public function isFinal()
public function setExtendedClass($extendedClass)
{
$this->extendedClass = $extendedClass;
return $this;
}
@@ -406,7 +402,6 @@ public function getExtendedClass()
public function setImplementedInterfaces(array $implementedInterfaces)
{
$this->implementedInterfaces = $implementedInterfaces;
return $this;
}
@@ -479,22 +474,24 @@ public function addPropertyFromGenerator(PropertyGenerator $property)
}
$this->properties[$propertyName] = $property;
return $this;
}
/**
* Add a class to "use" classes
*
* @param string $use
* @param string|null $useAlias
* @param string $use
* @param string|null $useAlias
* @return ClassGenerator
*/
public function addUse($use, $useAlias = null)
{
if (!empty($useAlias)) {
$use .= ' as ' . $useAlias;
}
$this->uses[] = $use;
return $this;
}
/**
@@ -603,7 +600,6 @@ public function addMethodFromGenerator(MethodGenerator $method)
}
$this->methods[$methodName] = $method;
return $this;
}
@@ -91,7 +91,6 @@ public static function fromReflection(ReflectionDocBlockTag $reflectionTag)
public function setName($name)
{
$this->name = ltrim($name, '@');
return $this;
}
@@ -110,7 +109,6 @@ public function getName()
public function setDescription($description)
{
$this->description = $description;
return $this;
}
@@ -119,7 +119,6 @@ public function __construct($shortDescription = null, $longDescription = null, a
public function setShortDescription($shortDescription)
{
$this->shortDescription = $shortDescription;
return $this;
}
@@ -138,7 +137,6 @@ public function getShortDescription()
public function setLongDescription($longDescription)
{
$this->longDescription = $longDescription;
return $this;
}
@@ -181,7 +179,6 @@ public function setTag($tag)
}
$this->tags[] = $tag;
return $this;
}
@@ -202,7 +199,6 @@ public function getTags()
public function setWordWrap($value)
{
$this->wordwrap = (boolean) $value;
return $this;
}
@@ -224,7 +224,6 @@ public function setDocBlock($docBlock)
}
$this->docBlock = $docBlock;
return $this;
}

0 comments on commit babe00b

Please sign in to comment.