<?php

namespace Diamond\Infrastructure\Models\GuestBook;

use Diamond\Domain\GuestBook\Contracts\GuestBookEntityInterface;
use Diamond\Infrastructure\Models\GuestBook\Base\GuestBook as BaseGuestBook;

/**
 * Skeleton subclass for representing a row from the '_guest_books' table.
 *
 *
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 */
class GuestBook extends BaseGuestBook implements GuestBookEntityInterface
{
    /**
     * @return int
     * @throws \Propel\Runtime\Exception\PropelException
     */
    public function getItemsCount(): int
    {
        return $this->getGuestBookItems()->count();
    }
}
