Skip to content

Commit

Permalink
removed last property accessor helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Simonas Šerlinskas committed Oct 9, 2015
1 parent f27fe7a commit 6991fcb
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions Result/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,35 +173,6 @@ public function convertToArray($object, $aliases = [])
return $array;
}

/**
* Returns property to access for object used by property accessor.
*
* @param string $field
*
* @return string
*/
private function getPropertyToAccess($field)
{
$deep = strpos($field, ' ');
if ($deep !== false) {
$field = substr($field, $deep + 1);
}

return $field;
}

/**
* Returns property to access for array used by property accessor.
*
* @param string $field
*
* @return string
*/
private function getPropertyPathToAccess($field)
{
return '[' . str_replace(' ', '][', $field) . ']';
}

/**
* Check if class matches the expected one.
*
Expand Down

0 comments on commit 6991fcb

Please sign in to comment.