Skip to content

Commit

Permalink
feat: add classroom book type
Browse files Browse the repository at this point in the history
  • Loading branch information
lkm committed Jul 30, 2021
1 parent db04aa6 commit e142018
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "^7.3|^8.0",
"php": ">=7.3",
"ext-curl": "*",
"ext-json" : "*",
"league/oauth2-client": "~2.3",
Expand Down
1 change: 1 addition & 0 deletions src/Entity/Book.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ abstract class Book extends Entity
const TYPE_PDF = 'pdf';
const TYPE_VIDEO = 'video';
const TYPE_AUDIOTALK = 'audioTalk';
const TYPE_CLASSROOM = 'classroom';

const FORMAT_PDF = 'pdf';
const FORMAT_EPUB = 'epub';
Expand Down
8 changes: 8 additions & 0 deletions src/Entity/ClassroomBook.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Bookboon\Api\Entity;

class ClassroomBook extends Book
{
const _OWN_TYPE = Book::TYPE_CLASSROOM;
}

0 comments on commit e142018

Please sign in to comment.