[DomCrawler] moved protected to private
This commit is contained in:
parent
f321fadad6
commit
c8c5720fa1
@ -20,10 +20,10 @@ use Symfony\Component\CssSelector\Parser as CssParser;
|
|||||||
*/
|
*/
|
||||||
class Crawler extends \SplObjectStorage
|
class Crawler extends \SplObjectStorage
|
||||||
{
|
{
|
||||||
protected $uri;
|
private $uri;
|
||||||
protected $host;
|
private $host;
|
||||||
protected $path;
|
private $path;
|
||||||
protected $base;
|
private $base;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
@ -560,7 +560,7 @@ class Crawler extends \SplObjectStorage
|
|||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getNode($position)
|
private function getNode($position)
|
||||||
{
|
{
|
||||||
foreach ($this as $i => $node) {
|
foreach ($this as $i => $node) {
|
||||||
if ($i == $position) {
|
if ($i == $position) {
|
||||||
@ -573,7 +573,7 @@ class Crawler extends \SplObjectStorage
|
|||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function parseUri($uri)
|
private function parseUri($uri)
|
||||||
{
|
{
|
||||||
if ('http' !== substr($uri, 0, 4)) {
|
if ('http' !== substr($uri, 0, 4)) {
|
||||||
return array(null, '/');
|
return array(null, '/');
|
||||||
@ -584,7 +584,7 @@ class Crawler extends \SplObjectStorage
|
|||||||
return array(preg_replace('#^(.*?//[^/]+)\/.*$#', '$1', $uri), $path);
|
return array(preg_replace('#^(.*?//[^/]+)\/.*$#', '$1', $uri), $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function sibling($node, $siblingDir = 'nextSibling')
|
private function sibling($node, $siblingDir = 'nextSibling')
|
||||||
{
|
{
|
||||||
$nodes = array();
|
$nodes = array();
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@ namespace Symfony\Component\DomCrawler\Field;
|
|||||||
*/
|
*/
|
||||||
class ChoiceFormField extends FormField
|
class ChoiceFormField extends FormField
|
||||||
{
|
{
|
||||||
protected $type;
|
private $type;
|
||||||
protected $multiple;
|
private $multiple;
|
||||||
protected $options;
|
private $options;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the field should be included in the submitted values.
|
* Returns true if the field should be included in the submitted values.
|
||||||
|
@ -20,14 +20,14 @@ use Symfony\Component\DomCrawler\Field\FormField;
|
|||||||
*/
|
*/
|
||||||
class Form implements \ArrayAccess
|
class Form implements \ArrayAccess
|
||||||
{
|
{
|
||||||
protected $document;
|
private $document;
|
||||||
protected $button;
|
private $button;
|
||||||
protected $node;
|
private $node;
|
||||||
protected $fields;
|
private $fields;
|
||||||
protected $method;
|
private $method;
|
||||||
protected $host;
|
private $host;
|
||||||
protected $path;
|
private $path;
|
||||||
protected $base;
|
private $base;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
@ -269,7 +269,7 @@ class Form implements \ArrayAccess
|
|||||||
return $this->fields;
|
return $this->fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function initialize()
|
private function initialize()
|
||||||
{
|
{
|
||||||
$this->fields = array();
|
$this->fields = array();
|
||||||
|
|
||||||
|
@ -18,11 +18,11 @@ namespace Symfony\Component\DomCrawler;
|
|||||||
*/
|
*/
|
||||||
class Link
|
class Link
|
||||||
{
|
{
|
||||||
protected $node;
|
private $node;
|
||||||
protected $method;
|
private $method;
|
||||||
protected $host;
|
private $host;
|
||||||
protected $path;
|
private $path;
|
||||||
protected $base;
|
private $base;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
Reference in New Issue
Block a user