Branch
Organizational branches and their business details.
Integration
Extend the Business Core document and collection in your application and map the concrete classes. Adjust the namespace and class names as needed.
<?php
namespace MyApplication;
use Core\Document\Annotation\Database;
#[Database(document: MyBranch::class)]
class MyBranchCollection extends \BusinessCore\Collection\Organization\BranchCollection\Base
{
}
#[Database(document: MyBranchCollection::class)]
class MyBranch extends \BusinessCore\Document\Organization\Branch\Base
{
}
Properties
Properties declared by BusinessCore\Document\Organization\Branch\Base, excluding
inherited
Core Document properties.
| Property | PHP type |
|---|---|
externalId |
ObjectId|null |
branchNumber |
string|null |
branchGroupId |
ObjectId|null |
name |
string|null |
addresses |
array|null |
isActive |
bool|null |