Skip to content

Commit

Permalink
Variable wrapper doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfraile committed Oct 3, 2013
1 parent b1d9d80 commit e0b3e2b
Showing 1 changed file with 38 additions and 10 deletions.
48 changes: 38 additions & 10 deletions src/Ladybug/Model/VariableWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,33 +41,61 @@ public function __construct($id, $data, $type = self::TYPE_CLASS)
$this->type = $type;
}

public function setData($data)
{
$this->data = $data;
}

public function getData()
{
return $this->data;
}

/**
* Sets the variable id.
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}

/**
* Gets the variable id.
*
* @return string Variable id
*/
public function getId()
{
return $this->id;
}

/**
* Sets the variable type
* @param int $type Variable type: TYPE_CLASS or TYPE_RESOURCE
*/
public function setType($type)
{
$this->type = $type;
}

/**
* Gets the variable type.
*
* @return int Variable type
*/
public function getType()
{
return $this->type;
}

/**
* Sets the variable itself.
* @param mixed $data
*/
public function setData($data)
{
$this->data = $data;
}

/**
* Gets variable.
*
* @return mixed
*/
public function getData()
{
return $this->data;
}

}

0 comments on commit e0b3e2b

Please sign in to comment.