adamwathan/faktory

View on GitHub
src/Relationship/BelongsTo.php

Summary

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

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

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

    protected function getRelatedModel()
    {
        return $this->factory->getModel();
    }
}