adamwathan/faktory

View on GitHub
src/Relationship/HasOne.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace AdamWathan\Faktory\Relationship;

class HasOne extends DependentRelationship
{
    public function build()
    {
        return $this->factory->build($this->attributes);
    }

    protected function createRelated()
    {
        return $this->factory->create($this->attributes);
    }
}