CoreFiles by mySites.guru
Usage.php49 lines, 753 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
d523f8860c2a4235a22d3a32464645c3
sha1
73c361dc4c1a1a9808661a2b179d571953a9cb73
sha256
31ede602cb6985fc015d796a96f5b3df95b53580e5107679451bbf8a6a0d2a9e
<?php
namespace enshrined\svgSanitize\ElementReference;

class Usage
{
    /**
     * @var Subject
     */
    protected $subject;

    /**
     * @var int
     */
    protected $count;

    /**
     * @param Subject $subject
     * @param int $count
     */
    public function __construct(Subject $subject, $count = 1)
    {
        $this->subject = $subject;
        $this->count = (int)$count;
    }

    /**
     * @param int $by
     */
    public function increment($by = 1)
    {
        $this->count += (int)$by;
    }

    /**
     * @return Subject
     */
    public function getSubject()
    {
        return $this->subject;
    }

    /**
     * @return int
     */
    public function getCount()
    {
        return $this->count;
    }
}

The same content is in 247 releases, Joomla 4.1.1 to 6.3.0-alpha1. See them all, or every version of this file.