Skip to content

Commit

Permalink
make all properties private
Browse files Browse the repository at this point in the history
Conflicts:

	src/Transformer/Callback.php
  • Loading branch information
dennis84 committed Jan 27, 2015
1 parent 8951a8e commit 3de08ce
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 21 deletions.
3 changes: 1 addition & 2 deletions src/Constraint/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
*/
class Callback extends Constraint
{
protected $message;
protected $callback;
private $callback;

/**
* Constructor.
Expand Down
3 changes: 1 addition & 2 deletions src/Constraint/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
*/
class Type extends Constraint
{
protected $message;
protected $type;
private $type;

/**
* Constructor.
Expand Down
8 changes: 4 additions & 4 deletions src/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
*/
class Data
{
protected $input;
protected $result;
protected $errors = [];
protected $propertyPath = [];
private $input;
private $result;
private $errors = [];
private $propertyPath = [];

/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/Emitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class Emitter
{
protected $callbacks = [];
private $callbacks = [];

/**
* Adds an event listener.
Expand Down
4 changes: 2 additions & 2 deletions src/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/
class Error
{
protected $message;
protected $propertyPath = [];
private $message;
private $propertyPath = [];

/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/Multiple.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function multiple(Mapping $proto)
*
* @throw InvalidArgumentException If given data is not an array
*/
protected function resize(Mapping $mapping, Mapping $proto, $input)
private function resize(Mapping $mapping, Mapping $proto, $input)
{
if (!is_array($input)) {
throw new \InvalidArgumentException('The input must be an array.');
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/SymfonyValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
class SymfonyValidation implements ExtensionInterface
{
protected $validator;
private $validator;

/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class Factory
{
protected $extensions = [];
private $extensions = [];

/**
* Constructor.
Expand Down
6 changes: 3 additions & 3 deletions src/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
*/
class Mapping
{
protected $emitter;
protected $extensions = [];
protected $children = [];
private $emitter;
private $extensions = [];
private $children = [];

/**
* Constructor.
Expand Down
6 changes: 3 additions & 3 deletions src/Transformer/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
*/
class Callback extends Transformer
{
protected $transform;
protected $reverseTransform;
protected $expand = true;
private $transform;
private $reverseTransform;
private $expand = true;

/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/ValidationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class ValidationException extends \Exception
{
protected $errors = [];
private $errors = [];

/**
* Constructor.
Expand Down

0 comments on commit 3de08ce

Please sign in to comment.