Skip to content

Commit

Permalink
Merge pull request phalcon#13 from zaets28rus/smallfixes
Browse files Browse the repository at this point in the history
refs #NA Fix doc block booelan, HeaderManager fix docs blocks and path m...
  • Loading branch information
Phalcon committed Oct 6, 2013
2 parents 3d3d134 + 2e4014d commit caba366
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Library/ClassDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function getName()
/**
* Sets if the class is final
*
* @param booelan $final
* @param boolean $final
*/
public function setIsFinal($final)
{
Expand All @@ -104,7 +104,7 @@ public function setIsFinal($final)
/**
* Sets if the class is final
*
* @param booelan $abstract
* @param boolean $abstract
*/
public function setIsAbstract($abstract)
{
Expand Down
15 changes: 12 additions & 3 deletions Library/HeadersManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,35 @@
*/

/**
* HeadersManager
* Class HeadersManager
*
* Manages the c-headers that must be added to a file
*/
class HeadersManager
{
/**
* List of headers
* @var array
*/
protected $_headers = array();

/**
*
* @param string $path
*/
public function add($path)
{
if (!is_string($path)) {
throw new \InvalidArgumentException('$path must be only string type');
}

$this->_headers[$path] = $path;
}

/**
* @return array
*/
public function get()
{
return $this->_headers;
}

}

0 comments on commit caba366

Please sign in to comment.