<?php
namespace Psalm\Plugin\Hook;

use PhpParser;
use Psalm\Context;
use Psalm\StatementsSource;
use Psalm\Type;

interface PropertyTypeProviderInterface
{
    /**
     * @return array<string>
     */
    public static function getClassLikeNames() : array;

    /**
     * @param  list<PhpParser\Node\Arg>    $call_args
     *
     */
    public static function getPropertyType(
        string $fq_classlike_name,
        string $property_name,
        bool $read_mode,
        ?StatementsSource $source = null,
        ?Context $context = null
    ): ?Type\Union;
}
