Skip to content

Commit

Permalink
Merge pull request #65 from bookboon/feature/classroom
Browse files Browse the repository at this point in the history
feat: add classroom book type
  • Loading branch information
lkm committed Jul 30, 2021
2 parents d7e43bf + e142018 commit 5138a84
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 5138a84

Please sign in to comment.