public function getPasswordHistories()
    {
        if (empty($this->passwordHistoryClass) || !class_exists($this->passwordHistoryClass)) {
            return false;
        }
        $class = $this->passwordHistoryClass;
        return $class::find()->createdBy($this)->orderByCreatedAt(SORT_DESC)->all();
    }
public function getPasswordHistories()
    {
        if (empty($this->passwordHistoryClass) || !class_exists($this->passwordHistoryClass)) {
            return false;
        }
        $class = $this->passwordHistoryClass;
        return $class::find()->createdBy($this)->orderByCreatedAt(SORT_DESC)->all();
    }
public function getPasswordHistories ( ) { if ( empty ( $ this -> passwordHistoryClass ) || ! class_exists ( $ this -> passwordHistoryClass ) ) { return false ; } $ class = $ this -> passwordHistoryClass ; return $ class :: find ( ) -> createdBy ( $ this ) -> orderByCreatedAt ( SORT_DESC ) -> all ( ) ; }
Get all password histories sorted by creation time in descending order.
@return boolean|PasswordHistory[] False if password history class is invalid.
Get all password histories sorted by creation time in descending order .