Skip to content

Commit

Permalink
phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Schneider committed Oct 29, 2018
1 parent b56b4a9 commit b5b90f4
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions lib/Horde/Yaml/Loader.php
Expand Up @@ -116,6 +116,8 @@ public function __construct()
* Returns the PHP built from all YAML parsed so far.
*
* @return array PHP version of parsed YAML.
* @throws Horde_Yaml_Exception
* @throws ReflectionException
*/
public function toArray()
{
Expand All @@ -130,9 +132,10 @@ public function toArray()
/**
* Parses a line of a YAML file.
*
* @param string $line The line of YAML to parse.
* @param string $line The line of YAML to parse.
*
* @return Horde_Yaml_Node YAML Node.
* @throws Horde_Yaml_Exception
* @throws ReflectionException
*/
public function parse($line)
{
Expand Down Expand Up @@ -324,9 +327,11 @@ protected function _getIndent($line)
/**
* Parses YAML code and returns an array for a node.
*
* @param string $line A line from the YAML file.
* @param string $line A line from the YAML file.
*
* @return array
* @throws Horde_Yaml_Exception
* @throws ReflectionException
*/
protected function _parseLine($line)
{
Expand Down Expand Up @@ -376,6 +381,8 @@ protected function _parseLine($line)
* @param string $value
*
* @return mixed
* @throws Horde_Yaml_Exception
* @throws ReflectionException
*/
protected function _toType($value)
{
Expand Down Expand Up @@ -461,7 +468,10 @@ protected function _toType($value)
/**
* Handles PHP serialized data.
*
* @param string &$data Data to check for serialized PHP types.
* @param string &$data Data to check for serialized PHP types.
*
* @throws Horde_Yaml_Exception
* @throws ReflectionException
*/
protected function _unserialize(&$data)
{
Expand Down Expand Up @@ -601,6 +611,8 @@ protected function _inlineEscape($inline)
* Builds the PHP array from all the YAML nodes we've gathered.
*
* @return array
* @throws Horde_Yaml_Exception
* @throws ReflectionException
*/
protected function _buildArray()
{
Expand Down Expand Up @@ -652,11 +664,12 @@ protected function _linkReferences()
/**
* Helper for _linkReferences().
*
* @param Horde_Yaml_Node $n Node.
* @param string $k Key.
* @param mixed $v Value.
* @param Horde_Yaml_Node $n Node.
* @param string $key Key.
* @param string $k Key.
* @param mixed $v Value.
*/
protected function _linkRef(&$n, $key, $k = null, $v = null)
protected function _linkRef($n, $key, $k = null, $v = null)
{
if (empty($k) && empty($v)) {
// Look for &refs
Expand Down Expand Up @@ -689,8 +702,11 @@ protected function _linkRef(&$n, $key, $k = null, $v = null)
/**
* Finds the children of a node and aids in the building of the PHP array
*
* @param int $nid The id of the node whose children we're gathering
* @param int $nid The id of the node whose children we're gathering
*
* @return array
* @throws Horde_Yaml_Exception
* @throws ReflectionException
*/
protected function _gatherChildren($nid)
{
Expand All @@ -717,7 +733,10 @@ protected function _gatherChildren($nid)
/**
* Turns a node's data and its children's data into a PHP array
*
* @param array $node The node which you want to arrayize.
* @param Horde_Yaml_Node $node The node which you want to arrayize.
*
* @throws Horde_Yaml_Exception
* @throws ReflectionException
*/
protected function _nodeArrayizeData(&$node)
{
Expand Down

0 comments on commit b5b90f4

Please sign in to comment.