public function getSimilarAttributes()
    {
        if (is_null($this->similarAttributes)
            || !$this->upToDate
        ) {
            $this->similarAttributes = $this->createSimilarAttributes();
            $this->upToDate = true;
        }

        return $this->similarAttributes;
    }
public function getSimilarAttributes()
    {
        if (is_null($this->similarAttributes)
            || !$this->upToDate
        ) {
            $this->similarAttributes = $this->createSimilarAttributes();
            $this->upToDate = true;
        }

        return $this->similarAttributes;
    }
public function getSimilarAttributes ( ) { if ( is_null ( $ this -> similarAttributes ) || ! $ this -> upToDate ) { $ this -> similarAttributes = $ this -> createSimilarAttributes ( ) ; $ this -> upToDate = true ; } return $ this -> similarAttributes ; }
Returns the attributes based on which similar records are determined as
well as the source product's values of those attributes. If no ID has
been set, there will be a warning raised and an empty array will be
returned.

@return mixed[] Attribute names as keys and attribute values as values.
Returns the attributes based on which similar records are determined as well as the source product s values of those attributes . If no ID has been set there will be a warning raised and an empty array will be returned .