public function getRecords(int $id): array;
嗨,有人可以告诉我冒号在这里做什么,在PHP接口里面的这个方法声明?这是PHP 7语法,这里有什么数组?方法必须返回数组或其他东西?
php php-7
php ×1
php-7 ×1