private function wantToAdd($attribute, array $properties): bool
    {
        return ($attribute instanceof Checkbox)
            && (($attribute->get('check_publish') === '1') || ($attribute->get('check_listview') === '1'))
            && (\in_array($attribute->getColName(), $properties, true));
    }
private function wantToAdd($attribute, array $properties): bool
    {
        return ($attribute instanceof Checkbox)
            && (($attribute->get('check_publish') === '1') || ($attribute->get('check_listview') === '1'))
            && (\in_array($attribute->getColName(), $properties, true));
    }
private function wantToAdd ( $ attribute , array $ properties ) : bool { return ( $ attribute instanceof Checkbox ) && ( ( $ attribute -> get ( 'check_publish' ) === '1' ) || ( $ attribute -> get ( 'check_listview' ) === '1' ) ) && ( \ in_array ( $ attribute -> getColName ( ) , $ properties , true ) ) ; }
Test if we want to add an operation for the attribute.

@param IAttribute $attribute  The attribute to test.
@param array      $properties The property names in the input screen.

@return bool
Test if we want to add an operation for the attribute .