class.course.php

来自「Professional PHP5 code for this book」· PHP 代码 · 共 30 行

PHP
30
字号
<?phpclass Course {  private $_id;  private $_courseCode;  private $_name;    function __construct($id, $courseCode, $name) {    $this->_id = $id;    $this->_courseCode = $courseCode;    $this->_name = $name;  }    public function getName() {    return $this->_name;  }    public function getID() {    return $this->_id;  }  public function getCourseCode() {    return $this->_courseCode;  }    public function __toString() {    return $this->_name;  }}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?