public function approvedWithPending(): ActiveQuery
    {
        return $this->andWhere([$this->statusAttribute => [Status::APPROVED, Status::PENDING]]);
    }
public function approvedWithPending(): ActiveQuery
    {
        return $this->andWhere([$this->statusAttribute => [Status::APPROVED, Status::PENDING]]);
    }
public function approvedWithPending ( ) : ActiveQuery { return $ this -> andWhere ( [ $ this -> statusAttribute => [ Status :: APPROVED , Status :: PENDING ] ] ) ; }
Get a new active query object that includes approved and pending resources.

@return ActiveQuery
Get a new active query object that includes approved and pending resources .