Copied!

BookmarkServiceDecorator

BookmarkServiceDecorator.php : 15
Implements BookmarkService

Properties

protected $innerService

BookmarkServiceDecorator.php : 18
protected BookmarkService $innerService

Methods

public__construct()

BookmarkServiceDecorator.php : 20
public __construct(BookmarkService $innerService)

Parameters

Name Type Default value Description
$innerService BookmarkService - -

publiccreateBookmark()

BookmarkServiceDecorator.php : 25

Add location to bookmarks.

public createBookmark(Location $location) : void

Parameters

Name Type Default value Description
$location Location - -

publicdeleteBookmark()

BookmarkServiceDecorator.php : 30

Delete given location from bookmarks.

public deleteBookmark(Location $location) : void

Parameters

Name Type Default value Description
$location Location - -

publicisBookmarked()

BookmarkServiceDecorator.php : 42

Return true if location is bookmarked.

public isBookmarked(Location $location) : bool

Parameters

Name Type Default value Description
$location Location - -

Return values

bool

publicloadBookmarks()

BookmarkServiceDecorator.php : 35

List bookmarked locations.

public loadBookmarks([int $offset = 0 ][, int $limit = 25 ]) : BookmarkList

Parameters

Name Type Default value Description
$offset int 0

the start offset for paging

$limit int 25

the number of bookmarked locations returned

Return values

BookmarkList