我有类实体书看起来像这样:
class Entity_Book extends ObjectClass
{
public $bookID;
public $bookName;
public $bookPrice;
// some method here...
}
和这个类ObjectClass:
class ObjectClass
{
protected function set{property}()
{
//content function here...
}
protected function get{property}()
{
//content function here...
}
}
使用类Entity_Book,我想自动生成函数setBookID,setBookName,setBookPrice来自magic方法集和get类ObjectClass。有人可以帮帮我吗?