<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="robots" content="index, follow, all" />
        <title>Symfony\Component\Validator\GraphWalker | </title>
                    <link rel="stylesheet" type="text/css" href="../../../stylesheet.css">
                            </head>
        <body id="class">
            <div class="header">
        <ul>
            <li><a href="../../../classes.html">Classes</a></li>
                            <li><a href="../../../namespaces.html">Namespaces</a></li>
                        <li><a href="../../../interfaces.html">Interfaces</a></li>
            <li><a href="../../../traits.html">Traits</a></li>
            <li><a href="../../../doc-index.html">Index</a></li>
            
        </ul>

        <div id="title"></div>

            <div class="type">Class</div>
    <h1><a href="../Validator.html">Symfony\Component\Validator</a>\GraphWalker</h1>
    </div>
        <div class="content">
                <p>    class
    <strong>GraphWalker</strong></p>

            <div class="description">
            <p>Responsible for walking over and initializing validation on different types of items.</p>
            <p>
</p>
        </div>
    
    
    
            <h2>Methods</h2>

            <table>
                    <tr>
                <td class="type">
                    
                </td>
                <td class="last">
                    <a href="GraphWalker.html#method___construct">__construct</a>(<a href="ValidationVisitor.html"><abbr title="Symfony\Component\Validator\ValidationVisitor">ValidationVisitor</abbr></a> $visitor, <a href="MetadataFactoryInterface.html"><abbr title="Symfony\Component\Validator\MetadataFactoryInterface">MetadataFactoryInterface</abbr></a> $metadataFactory, <a href="../Translation/TranslatorInterface.html"><abbr title="Symfony\Component\Translation\TranslatorInterface">TranslatorInterface</abbr></a> $translator, null|string $translationDomain = null, array $validatedObjects = array())
                    <p>Creates a new graph walker.</p>
                </td>
                <td></td>
            </tr>
                    <tr>
                <td class="type">
                    <a href="ConstraintViolationList.html"><abbr title="Symfony\Component\Validator\ConstraintViolationList">ConstraintViolationList</abbr></a>
                </td>
                <td class="last">
                    <a href="GraphWalker.html#method_getViolations">getViolations</a>()
                    <p>
</p>
                </td>
                <td></td>
            </tr>
                    <tr>
                <td class="type">
                    
                </td>
                <td class="last">
                    <a href="GraphWalker.html#method_walkObject">walkObject</a>(<a href="Mapping/ClassMetadata.html"><abbr title="Symfony\Component\Validator\Mapping\ClassMetadata">ClassMetadata</abbr></a> $metadata, object $object, string $group, string $propertyPath)
                    <p>Initialize validation on the given object using the given metadata instance and validation group.</p>
                </td>
                <td></td>
            </tr>
                    <tr>
                <td class="type">
                    
                </td>
                <td class="last">
                    <a href="GraphWalker.html#method_walkProperty">walkProperty</a>(<a href="Mapping/ClassMetadata.html"><abbr title="Symfony\Component\Validator\Mapping\ClassMetadata">ClassMetadata</abbr></a> $metadata, <abbr title="Symfony\Component\Validator\$property">$property</abbr> $property, <abbr title="Symfony\Component\Validator\$object">$object</abbr> $object, <abbr title="Symfony\Component\Validator\$group">$group</abbr> $group, <abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr> $propertyPath, null $propagatedGroup = null)
                    <p>Validates a property of a class.</p>
                </td>
                <td></td>
            </tr>
                    <tr>
                <td class="type">
                    
                </td>
                <td class="last">
                    <a href="GraphWalker.html#method_walkPropertyValue">walkPropertyValue</a>(<a href="Mapping/ClassMetadata.html"><abbr title="Symfony\Component\Validator\Mapping\ClassMetadata">ClassMetadata</abbr></a> $metadata, <abbr title="Symfony\Component\Validator\$property">$property</abbr> $property, <abbr title="Symfony\Component\Validator\$value">$value</abbr> $value, <abbr title="Symfony\Component\Validator\$group">$group</abbr> $group, <abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr> $propertyPath)
                    <p>Validates a property of a class against a potential value.</p>
                </td>
                <td></td>
            </tr>
                    <tr>
                <td class="type">
                    
                </td>
                <td class="last">
                    <a href="GraphWalker.html#method_walkReference">walkReference</a>(<abbr title="Symfony\Component\Validator\$value">$value</abbr> $value, <abbr title="Symfony\Component\Validator\$group">$group</abbr> $group, <abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr> $propertyPath, <abbr title="Symfony\Component\Validator\$traverse">$traverse</abbr> $traverse, bool $deep = false)
                    <p>Validates an object or an array.</p>
                </td>
                <td></td>
            </tr>
                    <tr>
                <td class="type">
                    
                </td>
                <td class="last">
                    <a href="GraphWalker.html#method_walkConstraint">walkConstraint</a>(<a href="Constraint.html"><abbr title="Symfony\Component\Validator\Constraint">Constraint</abbr></a> $constraint, <abbr title="Symfony\Component\Validator\$value">$value</abbr> $value, <abbr title="Symfony\Component\Validator\$group">$group</abbr> $group, <abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr> $propertyPath, null $currentClass = null, null $currentProperty = null)
                    <p>Validates a value against a constraint.</p>
                </td>
                <td></td>
            </tr>
            </table>


        <h2>Details</h2>

                        <h3 id="method___construct">
        <div class="location">at line 69</div>
        <code>            public            
    <strong>__construct</strong>(<a href="ValidationVisitor.html"><abbr title="Symfony\Component\Validator\ValidationVisitor">ValidationVisitor</abbr></a> $visitor, <a href="MetadataFactoryInterface.html"><abbr title="Symfony\Component\Validator\MetadataFactoryInterface">MetadataFactoryInterface</abbr></a> $metadataFactory, <a href="../Translation/TranslatorInterface.html"><abbr title="Symfony\Component\Translation\TranslatorInterface">TranslatorInterface</abbr></a> $translator, null|string $translationDomain = null, array $validatedObjects = array())</code>
    </h3>
    <div class="details">
        <p>Creates a new graph walker.</p>
        <p>
</p>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table>
                    <tr>
                <td><a href="ValidationVisitor.html"><abbr title="Symfony\Component\Validator\ValidationVisitor">ValidationVisitor</abbr></a></td>
                <td>$visitor</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><a href="MetadataFactoryInterface.html"><abbr title="Symfony\Component\Validator\MetadataFactoryInterface">MetadataFactoryInterface</abbr></a></td>
                <td>$metadataFactory</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><a href="../Translation/TranslatorInterface.html"><abbr title="Symfony\Component\Translation\TranslatorInterface">TranslatorInterface</abbr></a></td>
                <td>$translator</td>
                <td>
</td>
            </tr>
                    <tr>
                <td>null|string</td>
                <td>$translationDomain</td>
                <td>
</td>
            </tr>
                    <tr>
                <td>array</td>
                <td>$validatedObjects</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

                <h3 id="method_getViolations">
        <div class="location">at line 85</div>
        <code>            public            <a href="ConstraintViolationList.html"><abbr title="Symfony\Component\Validator\ConstraintViolationList">ConstraintViolationList</abbr></a>
    <strong>getViolations</strong>()</code>
    </h3>
    <div class="details">
        <p>
</p>
        <p>
</p>
        <div class="tags">
            
                            <h4>Return Value</h4>

                    <table>
        <tr>
            <td><a href="ConstraintViolationList.html"><abbr title="Symfony\Component\Validator\ConstraintViolationList">ConstraintViolationList</abbr></a></td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

                <h3 id="method_walkObject">
        <div class="location">at line 103</div>
        <code>            public            
    <strong>walkObject</strong>(<a href="Mapping/ClassMetadata.html"><abbr title="Symfony\Component\Validator\Mapping\ClassMetadata">ClassMetadata</abbr></a> $metadata, object $object, string $group, string $propertyPath)</code>
    </h3>
    <div class="details">
        <p>Initialize validation on the given object using the given metadata instance and validation group.</p>
        <p>
</p>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table>
                    <tr>
                <td><a href="Mapping/ClassMetadata.html"><abbr title="Symfony\Component\Validator\Mapping\ClassMetadata">ClassMetadata</abbr></a></td>
                <td>$metadata</td>
                <td>
</td>
            </tr>
                    <tr>
                <td>object</td>
                <td>$object</td>
                <td>The object to validate</td>
            </tr>
                    <tr>
                <td>string</td>
                <td>$group</td>
                <td>The validator group to use for validation</td>
            </tr>
                    <tr>
                <td>string</td>
                <td>$propertyPath</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

                <h3 id="method_walkProperty">
        <div class="location">at line 140</div>
        <code>            public            
    <strong>walkProperty</strong>(<a href="Mapping/ClassMetadata.html"><abbr title="Symfony\Component\Validator\Mapping\ClassMetadata">ClassMetadata</abbr></a> $metadata, <abbr title="Symfony\Component\Validator\$property">$property</abbr> $property, <abbr title="Symfony\Component\Validator\$object">$object</abbr> $object, <abbr title="Symfony\Component\Validator\$group">$group</abbr> $group, <abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr> $propertyPath, null $propagatedGroup = null)</code>
    </h3>
    <div class="details">
        <p>Validates a property of a class.</p>
        <p>
</p>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table>
                    <tr>
                <td><a href="Mapping/ClassMetadata.html"><abbr title="Symfony\Component\Validator\Mapping\ClassMetadata">ClassMetadata</abbr></a></td>
                <td>$metadata</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$property">$property</abbr></td>
                <td>$property</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$object">$object</abbr></td>
                <td>$object</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$group">$group</abbr></td>
                <td>$group</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr></td>
                <td>$propertyPath</td>
                <td>
</td>
            </tr>
                    <tr>
                <td>null</td>
                <td>$propagatedGroup</td>
                <td>
</td>
            </tr>
            </table>

            
            
                            <h4>Exceptions</h4>

                    <table>
                    <tr>
                <td><abbr title="Exception\UnexpectedTypeException">UnexpectedTypeException</abbr></td>
                <td>
</td>
            </tr>
            </table>

            
                    </div>
    </div>

                <h3 id="method_walkPropertyValue">
        <div class="location">at line 164</div>
        <code>            public            
    <strong>walkPropertyValue</strong>(<a href="Mapping/ClassMetadata.html"><abbr title="Symfony\Component\Validator\Mapping\ClassMetadata">ClassMetadata</abbr></a> $metadata, <abbr title="Symfony\Component\Validator\$property">$property</abbr> $property, <abbr title="Symfony\Component\Validator\$value">$value</abbr> $value, <abbr title="Symfony\Component\Validator\$group">$group</abbr> $group, <abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr> $propertyPath)</code>
    </h3>
    <div class="details">
        <p>Validates a property of a class against a potential value.</p>
        <p>
</p>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table>
                    <tr>
                <td><a href="Mapping/ClassMetadata.html"><abbr title="Symfony\Component\Validator\Mapping\ClassMetadata">ClassMetadata</abbr></a></td>
                <td>$metadata</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$property">$property</abbr></td>
                <td>$property</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$value">$value</abbr></td>
                <td>$value</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$group">$group</abbr></td>
                <td>$group</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr></td>
                <td>$propertyPath</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

                <h3 id="method_walkReference">
        <div class="location">at line 189</div>
        <code>            public            
    <strong>walkReference</strong>(<abbr title="Symfony\Component\Validator\$value">$value</abbr> $value, <abbr title="Symfony\Component\Validator\$group">$group</abbr> $group, <abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr> $propertyPath, <abbr title="Symfony\Component\Validator\$traverse">$traverse</abbr> $traverse, bool $deep = false)</code>
    </h3>
    <div class="details">
        <p>Validates an object or an array.</p>
        <p>
</p>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$value">$value</abbr></td>
                <td>$value</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$group">$group</abbr></td>
                <td>$group</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr></td>
                <td>$propertyPath</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$traverse">$traverse</abbr></td>
                <td>$traverse</td>
                <td>
</td>
            </tr>
                    <tr>
                <td>bool</td>
                <td>$deep</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

                <h3 id="method_walkConstraint">
        <div class="location">at line 208</div>
        <code>            public            
    <strong>walkConstraint</strong>(<a href="Constraint.html"><abbr title="Symfony\Component\Validator\Constraint">Constraint</abbr></a> $constraint, <abbr title="Symfony\Component\Validator\$value">$value</abbr> $value, <abbr title="Symfony\Component\Validator\$group">$group</abbr> $group, <abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr> $propertyPath, null $currentClass = null, null $currentProperty = null)</code>
    </h3>
    <div class="details">
        <p>Validates a value against a constraint.</p>
        <p>
</p>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table>
                    <tr>
                <td><a href="Constraint.html"><abbr title="Symfony\Component\Validator\Constraint">Constraint</abbr></a></td>
                <td>$constraint</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$value">$value</abbr></td>
                <td>$value</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$group">$group</abbr></td>
                <td>$group</td>
                <td>
</td>
            </tr>
                    <tr>
                <td><abbr title="Symfony\Component\Validator\$propertyPath">$propertyPath</abbr></td>
                <td>$propertyPath</td>
                <td>
</td>
            </tr>
                    <tr>
                <td>null</td>
                <td>$currentClass</td>
                <td>
</td>
            </tr>
                    <tr>
                <td>null</td>
                <td>$currentProperty</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

    
            </div>
                <div id="footer">
        Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
    </div>

    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-89393-6']);
        _gaq.push(['_setDomainName', '.symfony.com']);
        _gaq.push(['_trackPageview']);

        (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>
    </body>
</html>
