protected function pushAttributes(&$subject, array $attributes, bool $unique = true)
    {
        foreach ($attributes as $attribute) {
            if ($unique === false || in_array($attribute, $subject) === false) {
                $subject[] = $attribute;
            }
        }
        return $this;
    }
protected function pushAttributes(&$subject, array $attributes, bool $unique = true)
    {
        foreach ($attributes as $attribute) {
            if ($unique === false || in_array($attribute, $subject) === false) {
                $subject[] = $attribute;
            }
        }
        return $this;
    }
protected function pushAttributes ( & $ subject , array $ attributes , bool $ unique = true ) { foreach ( $ attributes as $ attribute ) { if ( $ unique === false || in_array ( $ attribute , $ subject ) === false ) { $ subject [ ] = $ attribute ; } } return $ this ; }
Push the given array of attributes to the given subject.

@param array $subject
@param array $attributes
@param bool $unique
@return $this
Push the given array of attributes to the given subject .