src/DataDefinition/Palette/Builder/PaletteBuilder.php
public function useProperty($property, $_ = null)
    {
        if ($this->property) {
            $this->finishProperty();
        }

        $properties = \func_get_args();

        $this->property = [];
        foreach ($properties as $property) {
            $event = new UsePropertyEvent($property, $this);
            $this->dispatchEvent($event);

            $this->property[] = $property;
        }

        if (1 === \count($this->property)) {
            $this->property = \array_shift($this->property);
        }

        return $this;
    }
public function useProperty($property, $_ = null)
    {
        if ($this->property) {
            $this->finishProperty();
        }

        $properties = \func_get_args();

        $this->property = [];
        foreach ($properties as $property) {
            $event = new UsePropertyEvent($property, $this);
            $this->dispatchEvent($event);

            $this->property[] = $property;
        }

        if (1 === \count($this->property)) {
            $this->property = \array_shift($this->property);
        }

        return $this;
    }
public function useProperty ( $ property , $ _ = null ) { if ( $ this -> property ) { $ this -> finishProperty ( ) ; } $ properties = \ func_get_args ( ) ; $ this -> property = [ ] ; foreach ( $ properties as $ property ) { $ event = new UsePropertyEvent ( $ property , $ this ) ; $ this -> dispatchEvent ( $ event ) ; $ this -> property [ ] = $ property ; } if ( 1 === \ count ( $ this -> property ) ) { $ this -> property = \ array_shift ( $ this -> property ) ; } return $ this ; }
Reuse an existing property or set of properties.

@param PropertyInterface $property The first property.
@param PropertyInterface $_        Any more subsequent properties to be used.

@return PaletteBuilder

@SuppressWarnings(PHPMD.UnusedFormalParameter)
@SuppressWarnings(PHPMD.ShortVariable)
@SuppressWarnings(PHPMD.CamelCaseParameterName)
Reuse an existing property or set of properties .