Neos\Flow\Property\PropertyMappingConfiguration::skipProperties PHP Метод

skipProperties() публичный Метод

Example: skipProperties('unused', 'dummy')
public skipProperties ( ) : PropertyMappingConfiguration
Результат PropertyMappingConfiguration this
    public function skipProperties()
    {
        foreach (func_get_args() as $propertyName) {
            $this->propertiesToSkip[$propertyName] = $propertyName;
        }
        return $this;
    }

Usage Example

 /**
  * @test
  * @covers \Neos\Flow\Property\PropertyMappingConfiguration::shouldSkip
  */
 public function shouldSkipReturnsTrueIfConfigured()
 {
     $this->propertyMappingConfiguration->skipProperties('someSourceProperty', 'someOtherSourceProperty');
     $this->assertTrue($this->propertyMappingConfiguration->shouldSkip('someSourceProperty'));
     $this->assertTrue($this->propertyMappingConfiguration->shouldSkip('someOtherSourceProperty'));
 }