Skip to content

Commit

Permalink
Fix phpdocs for DefaultMariaDbActivityList $activities property (#468)
Browse files Browse the repository at this point in the history
* Fix phpdocs for DefaultMariaDbActivityList $activities property - related to #467

* Apply php-cs-fixer changes

---------

Co-authored-by: dvesh3 <dvesh3@users.noreply.github.com>
  • Loading branch information
dvesh3 and dvesh3 committed May 10, 2023
1 parent e3f3333 commit e8424fd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Model/ActivityList/DefaultMariaDbActivityList.php
Expand Up @@ -15,7 +15,6 @@

namespace CustomerManagementFrameworkBundle\Model\ActivityList;

use CustomerManagementFrameworkBundle\Model\ActivityInterface;
use CustomerManagementFrameworkBundle\Model\ActivityList\DefaultMariaDbActivityList\MariaDbDao;
use CustomerManagementFrameworkBundle\Model\ActivityStoreEntry\ActivityStoreEntryInterface;
use Pimcore\Model\Listing\AbstractListing;
Expand All @@ -38,7 +37,7 @@ class DefaultMariaDbActivityList extends AbstractListing implements ActivityList
protected $totalCount = null;

/**
* @var null|ActivityInterface[]
* @var null|ActivityStoreEntryInterface[]
*/
protected $activities = null;

Expand All @@ -52,6 +51,9 @@ public function __construct()
$this->dao = new MariaDbDao($this);
}

/**
* @return ActivityStoreEntryInterface[]
*/
public function getActivities()
{
if ($this->activities === null) {
Expand Down Expand Up @@ -116,7 +118,7 @@ public function getOffset()
* @param int $offset Page offset
* @param int $itemCountPerPage Number of items per page
*
* @return array
* @return ActivityStoreEntryInterface[]
*/
public function getItems($offset, $itemCountPerPage)
{
Expand Down Expand Up @@ -148,10 +150,10 @@ public function getPaginatorAdapter()
}

/**
* @return ActivityInterface|false
* @return ActivityStoreEntryInterface|false
*/
#[\ReturnTypeWillChange]
public function current()/* : ActivityInterface|false */
public function current()/* : ActivityStoreEntryInterface|false */
{
$this->getActivities();

Expand Down

0 comments on commit e8424fd

Please sign in to comment.