You are here

interface ObjectInitializerInterface in Plug 7

Prepares an object for validation.

Concrete implementations of this interface are used by {@link ValidationVisitorInterface} to initialize objects just before validating them.

@author Fabien Potencier <fabien@symfony.com> @author Bernhard Schussek <bschussek@gmail.com>

@api

Hierarchy

Expanded class hierarchy of ObjectInitializerInterface

All classes that implement ObjectInitializerInterface

2 files declare their use of ObjectInitializerInterface
RecursiveContextualValidator.php in lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php
RecursiveValidator.php in lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveValidator.php

File

lib/Symfony/validator/Symfony/Component/Validator/ObjectInitializerInterface.php, line 25

Namespace

Symfony\Component\Validator
View source
interface ObjectInitializerInterface {

  /**
   * Initializes an object just before validation.
   *
   * @param object $object The object to validate
   *
   * @api
   */
  public function initialize($object);

}

Members

Namesort descending Modifiers Type Description Overrides
ObjectInitializerInterface::initialize public function Initializes an object just before validation.