shouldMap() 공개 메소드

- if a property has been explicitly forbidden using allowAllPropertiesExcept(...), it is directly rejected - if a property has been allowed using allowProperties(...), it is directly allowed. - if allowAllProperties* has been called, we allow unknown properties - else, return false.
public shouldMap ( string $propertyName ) : boolean
$propertyName string
리턴 boolean TRUE if the given propertyName should be mapped, FALSE otherwise.
 /**
  * @test
  * @covers \Neos\Flow\Property\PropertyMappingConfiguration::shouldMap
  */
 public function shouldMapReturnsFalseForBlacklistedProperties()
 {
     $this->propertyMappingConfiguration->allowAllPropertiesExcept('someSourceProperty', 'someOtherProperty');
     $this->assertFalse($this->propertyMappingConfiguration->shouldMap('someSourceProperty'));
     $this->assertFalse($this->propertyMappingConfiguration->shouldMap('someOtherProperty'));
     $this->assertTrue($this->propertyMappingConfiguration->shouldMap('someOtherPropertyWhichHasNotBeenConfigured'));
 }