From c8c5720fa1b238262dc038d140951bd6ef4c8836 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 11 Mar 2011 15:13:33 +0100 Subject: [PATCH] [DomCrawler] moved protected to private --- src/Symfony/Component/DomCrawler/Crawler.php | 14 +++++++------- .../DomCrawler/Field/ChoiceFormField.php | 6 +++--- src/Symfony/Component/DomCrawler/Form.php | 18 +++++++++--------- src/Symfony/Component/DomCrawler/Link.php | 10 +++++----- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/Symfony/Component/DomCrawler/Crawler.php b/src/Symfony/Component/DomCrawler/Crawler.php index 6564f42d89..73b6b876d6 100644 --- a/src/Symfony/Component/DomCrawler/Crawler.php +++ b/src/Symfony/Component/DomCrawler/Crawler.php @@ -20,10 +20,10 @@ use Symfony\Component\CssSelector\Parser as CssParser; */ class Crawler extends \SplObjectStorage { - protected $uri; - protected $host; - protected $path; - protected $base; + private $uri; + private $host; + private $path; + private $base; /** * Constructor. @@ -560,7 +560,7 @@ class Crawler extends \SplObjectStorage return $form; } - protected function getNode($position) + private function getNode($position) { foreach ($this as $i => $node) { if ($i == $position) { @@ -573,7 +573,7 @@ class Crawler extends \SplObjectStorage // @codeCoverageIgnoreEnd } - protected function parseUri($uri) + private function parseUri($uri) { if ('http' !== substr($uri, 0, 4)) { return array(null, '/'); @@ -584,7 +584,7 @@ class Crawler extends \SplObjectStorage return array(preg_replace('#^(.*?//[^/]+)\/.*$#', '$1', $uri), $path); } - protected function sibling($node, $siblingDir = 'nextSibling') + private function sibling($node, $siblingDir = 'nextSibling') { $nodes = array(); diff --git a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php index 2777da9f8b..839043c446 100644 --- a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php +++ b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php @@ -20,9 +20,9 @@ namespace Symfony\Component\DomCrawler\Field; */ class ChoiceFormField extends FormField { - protected $type; - protected $multiple; - protected $options; + private $type; + private $multiple; + private $options; /** * Returns true if the field should be included in the submitted values. diff --git a/src/Symfony/Component/DomCrawler/Form.php b/src/Symfony/Component/DomCrawler/Form.php index 6759e43bb8..2ac66eb994 100644 --- a/src/Symfony/Component/DomCrawler/Form.php +++ b/src/Symfony/Component/DomCrawler/Form.php @@ -20,14 +20,14 @@ use Symfony\Component\DomCrawler\Field\FormField; */ class Form implements \ArrayAccess { - protected $document; - protected $button; - protected $node; - protected $fields; - protected $method; - protected $host; - protected $path; - protected $base; + private $document; + private $button; + private $node; + private $fields; + private $method; + private $host; + private $path; + private $base; /** * Constructor. @@ -269,7 +269,7 @@ class Form implements \ArrayAccess return $this->fields; } - protected function initialize() + private function initialize() { $this->fields = array(); diff --git a/src/Symfony/Component/DomCrawler/Link.php b/src/Symfony/Component/DomCrawler/Link.php index 31c17eb682..c5bd6b9024 100644 --- a/src/Symfony/Component/DomCrawler/Link.php +++ b/src/Symfony/Component/DomCrawler/Link.php @@ -18,11 +18,11 @@ namespace Symfony\Component\DomCrawler; */ class Link { - protected $node; - protected $method; - protected $host; - protected $path; - protected $base; + private $node; + private $method; + private $host; + private $path; + private $base; /** * Constructor.