Back to Patcher class

Method getDestination

protected array
getDestination
(mixed $dst, mixed $src)
Get the lines of a destination file
Parameters
  • string $dst The path of a destination file
  • string $src The path of a source file
Returns
  • array The lines of the destination file
Since
  • 3.0.0
Class: Patcher
Project: Joomla

Method getDestination - Source code

/**
 * Get the lines of a destination file
 *
 * @param   string  $dst  The path of a destination file
 * @param   string  $src  The path of a source file
 *
 * @return  array  The lines of the destination file
 *
 * @since   3.0.0
 */
protected function &getDestination($dst, $src)
{
    if (!isset($this->destinations[$dst])) {
        $this->destinations[$dst] = $this->getSource($src);
    }
    return $this->destinations[$dst];
}