public function getComparableAttributes()
    {
        if (is_null($this->comparableAttributes)
            || !$this->upToDate
        ) {
            $this->comparableAttributes = $this->createComparableAttributes();
            $this->upToDate = true;
        }

        return $this->comparableAttributes;
    }
public function getComparableAttributes()
    {
        if (is_null($this->comparableAttributes)
            || !$this->upToDate
        ) {
            $this->comparableAttributes = $this->createComparableAttributes();
            $this->upToDate = true;
        }

        return $this->comparableAttributes;
    }
public function getComparableAttributes ( ) { if ( is_null ( $ this -> comparableAttributes ) || ! $ this -> upToDate ) { $ this -> comparableAttributes = $ this -> createComparableAttributes ( ) ; $ this -> upToDate = true ; } return $ this -> comparableAttributes ; }
Returns the attributes which can be compared and whether the products in
question differ in each of those attributes. If no IDs have been set,
there will be a warning raised and an empty array will be returned.

@return bool[] Attribute names as keys, boolean value indicates whether
products have different values for this attribute.
Returns the attributes which can be compared and whether the products in question differ in each of those attributes . If no IDs have been set there will be a warning raised and an empty array will be returned .