App\Entities\Setting\MailSettingEntity::setFrom PHP Method

setFrom() public method

public setFrom ( array $from )
$from array
    public function setFrom(array $from)
    {
        $this->from = $from;
        return $this;
    }

Usage Example

Example #1
0
 public function test_Should_SetAndGetFrom()
 {
     $mailSettingEntity = new MailSettingEntity();
     $from['address'] = '*****@*****.**';
     $from['name'] = 'from_name';
     $mailSettingEntity->setFrom($from);
     $retFrom = $mailSettingEntity->getFrom();
     $this->assertEquals($from, $retFrom);
 }
All Usage Examples Of App\Entities\Setting\MailSettingEntity::setFrom