eZ\Publish\Core\Limitation\SubtreeLimitationType::valueSchema PHP Method

valueSchema() public method

Returns info on valid $limitationValues.
public valueSchema ( ) : mixed[] | integer
return mixed[] | integer In case of array, a hash with key as valid limitations value and value as human readable name of that option, in case of int on of VALUE_SCHEMA_ constants.
    public function valueSchema()
    {
        return self::VALUE_SCHEMA_LOCATION_PATH;
    }

Usage Example

 /**
  * @depends testConstruct
  *
  * @param \eZ\Publish\Core\Limitation\SubtreeLimitationType $limitationType
  */
 public function testValueSchema(SubtreeLimitationType $limitationType)
 {
     self::assertEquals(SubtreeLimitationType::VALUE_SCHEMA_LOCATION_PATH, $limitationType->valueSchema());
 }