Elgg\Mocks\Database\SubtypeTable::update PHP Method

update() public method

public update ( $type, $subtype, $class = '' )
    public function update($type, $subtype, $class = '')
    {
        $id = $this->getId($type, $subtype);
        if (!$id) {
            return false;
        }
        $this->subtypes[$id] = ['type' => $type, 'subtype' => $subtype, 'class' => $class];
        return true;
    }