updated-packages
This commit is contained in:
@@ -7,10 +7,11 @@ use Symfony\Component\CssSelector\Node\Specificity;
|
||||
class Processor
|
||||
{
|
||||
/**
|
||||
* Split a string into seperate properties
|
||||
* Split a string into separate properties
|
||||
*
|
||||
* @param string $propertiesString
|
||||
* @return array
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function splitIntoSeparateProperties($propertiesString)
|
||||
{
|
||||
@@ -40,8 +41,9 @@ class Processor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $string
|
||||
* @return mixed|string
|
||||
* @param string $string
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function cleanup($string)
|
||||
{
|
||||
@@ -58,9 +60,10 @@ class Processor
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a property-string into an object
|
||||
* Converts a property-string into an object
|
||||
*
|
||||
* @param string $property
|
||||
*
|
||||
* @return Property|null
|
||||
*/
|
||||
public function convertToObject($property, Specificity $specificity = null)
|
||||
@@ -82,9 +85,10 @@ class Processor
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert an array of property-strings into objects
|
||||
* Converts an array of property-strings into objects
|
||||
*
|
||||
* @param string[] $properties
|
||||
*
|
||||
* @param array $properties
|
||||
* @return Property[]
|
||||
*/
|
||||
public function convertArrayToObjects(array $properties, Specificity $specificity = null)
|
||||
@@ -106,7 +110,8 @@ class Processor
|
||||
/**
|
||||
* Build the property-string for multiple properties
|
||||
*
|
||||
* @param array $properties
|
||||
* @param Property[] $properties
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function buildPropertiesString(array $properties)
|
||||
|
||||
@@ -23,8 +23,8 @@ final class Property
|
||||
|
||||
/**
|
||||
* Property constructor.
|
||||
* @param $name
|
||||
* @param $value
|
||||
* @param string $name
|
||||
* @param string $value
|
||||
* @param Specificity|null $specificity
|
||||
*/
|
||||
public function __construct($name, $value, Specificity $specificity = null)
|
||||
|
||||
Reference in New Issue
Block a user