original_string: public function addGetterConstraint($property, Constraint $constraint)
      {
          if (!isset($this->getters[$property])) {
              $this->getters[$property] = new GetterMetadata($this->getClassName(), $property);
  
              $this->addPropertyMetadata($this->getters[$property]);
          }
  
          $constraint->addImplicitGroupName($this->getDefaultGroup());
  
          $this->getters[$property]->addConstraint($constraint);
  
          return $this;
      }
code: public function addGetterConstraint($property, Constraint $constraint)
      {
          if (!isset($this->getters[$property])) {
              $this->getters[$property] = new GetterMetadata($this->getClassName(), $property);
  
              $this->addPropertyMetadata($this->getters[$property]);
          }
  
          $constraint->addImplicitGroupName($this->getDefaultGroup());
  
          $this->getters[$property]->addConstraint($constraint);
  
          return $this;
      }
code_tokens: public function addGetterConstraint ( $ property , Constraint $ constraint ) { if ( ! isset ( $ this -> getters [ $ property ] ) ) { $ this -> getters [ $ property ] = new GetterMetadata ( $ this -> getClassName ( ) , $ property ) ; $ this -> addPropertyMetadata ( $ this -> getters [ $ property ] ) ; } $ constraint -> addImplicitGroupName ( $ this -> getDefaultGroup ( ) ) ; $ this -> getters [ $ property ] -> addConstraint ( $ constraint ) ; return $ this ; }
docstring: Adds a constraint to the getter of the given property.
  
  The name of the getter is assumed to be the name of the property with an
  uppercased first letter and either the prefix "get" or "is".
  
  @param string     $property   The name of the property
  @param Constraint $constraint The constraint
  
  @return $this
docstring_tokens: Adds a constraint to the getter of the given property .