Documentation

Entity
in package

Represents the comprehensive response structure for a company/institution from the ANAF API

Table of Contents

Properties

$adresa_domiciliu_fiscal  : Address|null
$adresa_sediu_social  : Address|null
$date_generale  : GeneralInfo|null
$inregistrare_RTVAI  : RTVAInfo|null
$inregistrare_scop_Tva  : TVAInfo|null
$inregistrare_SplitTVA  : SplitTVAInfo|null
$stare_inactiv  : InactiveInfo|null

Methods

CreateFromParsed()  : Entity
Used to convert the parsed data (json) from the ANAF API to an Entity object
GetSector()  : int|null
Try to extract Bucharest's sector from the address Will return null if the address is not set or if the address does not contain a sector.
IsRadiat()  : bool
Check if CIF is "radiat" (closed?)

Properties

$adresa_domiciliu_fiscal

public Address|null $adresa_domiciliu_fiscal

The company's fiscal domicile address, nullable if the address is not set

$adresa_sediu_social

public Address|null $adresa_sediu_social

The company's registered office address, nullable if the address is not set

$date_generale

public GeneralInfo|null $date_generale

General information about the company nullable only for error handling! It should never be null in a valid response!

$inregistrare_RTVAI

public RTVAInfo|null $inregistrare_RTVAI

RTVA (taxable on payment?) information about the company, nullable if the company was not registered for RTVA at the searched period

$inregistrare_scop_Tva

public TVAInfo|null $inregistrare_scop_Tva

TVA information about the company, nullable if the company was not registered for TVA at the searched period

$inregistrare_SplitTVA

public SplitTVAInfo|null $inregistrare_SplitTVA

Split TVA(broken down tax payment?) information about the company, nullable if the company was not registered for split TVA at the searched period

$stare_inactiv

public InactiveInfo|null $stare_inactiv

Inactive information about the company, nullable if the company was not inactive for the searched period

Methods

CreateFromParsed()

Used to convert the parsed data (json) from the ANAF API to an Entity object

public static CreateFromParsed(stdClass $parsedData) : Entity
Parameters
$parsedData : stdClass
Return values
Entity

GetSector()

Try to extract Bucharest's sector from the address Will return null if the address is not set or if the address does not contain a sector.

public GetSector() : int|null

(Looks for the word "sector" followed by a digit, case-insensitive, surrounded by spaces or punctuation)

Return values
int|null

IsRadiat()

Check if CIF is "radiat" (closed?)

public IsRadiat() : bool
Return values
bool

        
On this page

Search results