You are here

public function MemberMetadata::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/MemberMetadata.php \Symfony\Component\Validator\Mapping\MemberMetadata::__construct()

Constructor.

Parameters

string $class The name of the class this member is defined on:

string $name The name of the member:

string $property The property the member belongs to:

Overrides ElementMetadata::__construct

2 calls to MemberMetadata::__construct()
GetterMetadata::__construct in vendor/symfony/validator/Mapping/GetterMetadata.php
Constructor.
PropertyMetadata::__construct in vendor/symfony/validator/Mapping/PropertyMetadata.php
Constructor.
2 methods override MemberMetadata::__construct()
GetterMetadata::__construct in vendor/symfony/validator/Mapping/GetterMetadata.php
Constructor.
PropertyMetadata::__construct in vendor/symfony/validator/Mapping/PropertyMetadata.php
Constructor.

File

vendor/symfony/validator/Mapping/MemberMetadata.php, line 71

Class

MemberMetadata
Stores all metadata needed for validating a class property.

Namespace

Symfony\Component\Validator\Mapping

Code

public function __construct($class, $name, $property) {
  $this->class = $class;
  $this->name = $name;
  $this->property = $property;
}