Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/BilgeXA/zf2 into feature/…
Browse files Browse the repository at this point in the history
…di-fluent-interface
  • Loading branch information
weierophinney committed May 11, 2012
4 parents 161cf99 + 1574527 + be3997d + 89b24bc commit 23388b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Definition/ClassDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ public function __construct($class)
public function setInstantiator($instantiator)
{
$this->instantiator = $instantiator;
return $this;
}

public function setSupertypes(array $supertypes)
{
$this->supertypes = $supertypes;
return $this;
}

public function addMethod($method, $isRequired = null)
Expand All @@ -33,6 +35,8 @@ public function addMethod($method, $isRequired = null)
$isRequired = ($method === '__construct') ? true : false;
}
$this->methods[$method] = (bool) $isRequired;

return $this;
}

/**
Expand All @@ -57,6 +61,8 @@ public function addMethodParameter($method, $parameterName, array $parameterInfo
$this->methodParameters[$method][$fqName] = array(
$parameterName, $type, $required
);

return $this;
}

/**
Expand Down

0 comments on commit 23388b8

Please sign in to comment.