Здравствуйте, каким образом обратиться к возвращаемому значению в методе? в данному случае к переменной $papers.
class WorkBd {
	public $text;
	public $title;
	public $category;
	public function __construct(){
		ConnectBd();
	}
	public function connect($category, $title, $text){
		$this->category=$category;
		$this->title=$title;
		$this->text=$text;
		
		ChekBD($this->category, 'category');
		ChekBD($this->title, 'title');
		ChekBD($this->text, 'texts');
		
		$papers = [];
		$paper = mysql_query("SELECT * FROM articles");
		while(!false == ($bd_paper = mysql_fetch_array($paper))){
	        $papers = $bd_paper['texts'];
		}
                 return  $papers;
	}
}