eZ\Bundle\EzPublishCoreBundle\Features\Context\FieldTypeContext::createContentOfThisTypeWithProperties PHP Метод

createContentOfThisTypeWithProperties() публичный Метод

public createContentOfThisTypeWithProperties ( $fieldType, Behat\Gherkin\Node\TableNode $properties, $name = null )
$properties Behat\Gherkin\Node\TableNode
    public function createContentOfThisTypeWithProperties($fieldType, TableNode $properties, $name = null)
    {
        $this->createField($fieldType, $name);
        foreach ($properties as $property) {
            if ($property['Validator'] == 'maximum value validator') {
                $this->addValueConstraint($fieldType, $property['Value'], 'max');
            } elseif ($property['Validator'] == 'minimum value validator') {
                $this->addValueConstraint($fieldType, $property['Value'], 'min');
            }
        }
    }