Changed return type definition for some methods of NodeDefinition
This commit is contained in:
parent
e18d2ad80d
commit
89ca585185
@ -22,6 +22,11 @@ class EnumNodeDefinition extends ScalarNodeDefinition
|
|||||||
{
|
{
|
||||||
private $values;
|
private $values;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $values
|
||||||
|
*
|
||||||
|
* @return EnumNodeDefinition|$this
|
||||||
|
*/
|
||||||
public function values(array $values)
|
public function values(array $values)
|
||||||
{
|
{
|
||||||
$values = array_unique($values);
|
$values = array_unique($values);
|
||||||
|
@ -59,7 +59,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
*
|
*
|
||||||
* @param NodeParentInterface $parent The parent
|
* @param NodeParentInterface $parent The parent
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function setParent(NodeParentInterface $parent)
|
public function setParent(NodeParentInterface $parent)
|
||||||
{
|
{
|
||||||
@ -73,7 +73,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
*
|
*
|
||||||
* @param string $info The info text
|
* @param string $info The info text
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function info($info)
|
public function info($info)
|
||||||
{
|
{
|
||||||
@ -85,7 +85,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
*
|
*
|
||||||
* @param string|array $example
|
* @param string|array $example
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function example($example)
|
public function example($example)
|
||||||
{
|
{
|
||||||
@ -98,7 +98,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
* @param string $key
|
* @param string $key
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function attribute($key, $value)
|
public function attribute($key, $value)
|
||||||
{
|
{
|
||||||
@ -149,7 +149,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
*
|
*
|
||||||
* @param mixed $value The default value
|
* @param mixed $value The default value
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function defaultValue($value)
|
public function defaultValue($value)
|
||||||
{
|
{
|
||||||
@ -162,7 +162,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
/**
|
/**
|
||||||
* Sets the node as required.
|
* Sets the node as required.
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function isRequired()
|
public function isRequired()
|
||||||
{
|
{
|
||||||
@ -176,7 +176,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
*
|
*
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function treatNullLike($value)
|
public function treatNullLike($value)
|
||||||
{
|
{
|
||||||
@ -190,7 +190,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
*
|
*
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function treatTrueLike($value)
|
public function treatTrueLike($value)
|
||||||
{
|
{
|
||||||
@ -204,7 +204,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
*
|
*
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function treatFalseLike($value)
|
public function treatFalseLike($value)
|
||||||
{
|
{
|
||||||
@ -216,7 +216,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
/**
|
/**
|
||||||
* Sets null as the default value.
|
* Sets null as the default value.
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function defaultNull()
|
public function defaultNull()
|
||||||
{
|
{
|
||||||
@ -226,7 +226,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
/**
|
/**
|
||||||
* Sets true as the default value.
|
* Sets true as the default value.
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function defaultTrue()
|
public function defaultTrue()
|
||||||
{
|
{
|
||||||
@ -236,7 +236,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
/**
|
/**
|
||||||
* Sets false as the default value.
|
* Sets false as the default value.
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function defaultFalse()
|
public function defaultFalse()
|
||||||
{
|
{
|
||||||
@ -256,7 +256,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
/**
|
/**
|
||||||
* Denies the node value being empty.
|
* Denies the node value being empty.
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function cannotBeEmpty()
|
public function cannotBeEmpty()
|
||||||
{
|
{
|
||||||
@ -284,7 +284,7 @@ abstract class NodeDefinition implements NodeParentInterface
|
|||||||
*
|
*
|
||||||
* @param bool $deny Whether the overwriting is forbidden or not
|
* @param bool $deny Whether the overwriting is forbidden or not
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition|$this
|
||||||
*/
|
*/
|
||||||
public function cannotBeOverwritten($deny = true)
|
public function cannotBeOverwritten($deny = true)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user