public static function getStatementWithSubStatement($id = self::DEFAULT_STATEMENT_ID)
    {
        if (null === $id) {
            $id = UuidFixtures::getUniqueUuid();
        }

        $actor = new Agent(InverseFunctionalIdentifier::withMbox(IRI::fromString('mailto:test@example.com')));
        $verb = new Verb(IRI::fromString('http://example.com/visited'), LanguageMap::create(array('en-US' => 'will visit')));
        $definition = new Definition(
            LanguageMap::create(array('en-US' => 'Some Awesome Website')),
            LanguageMap::create(array('en-US' => 'The visited website')),
            IRI::fromString('http://example.com/definition-type')
        );
        $activity = new Activity(IRI::fromString('http://example.com/website'), $definition);
        $subStatement = new SubStatement($actor, $verb, $activity);

        $actor = new Agent(InverseFunctionalIdentifier::withMbox(IRI::fromString('mailto:test@example.com')));
        $verb = new Verb(IRI::fromString('http://example.com/planned'), LanguageMap::create(array('en-US' => 'planned')));

        return new Statement(StatementId::fromString($id), $actor, $verb, $subStatement);
    }
public static function getStatementWithSubStatement($id = self::DEFAULT_STATEMENT_ID)
    {
        if (null === $id) {
            $id = UuidFixtures::getUniqueUuid();
        }

        $actor = new Agent(InverseFunctionalIdentifier::withMbox(IRI::fromString('mailto:test@example.com')));
        $verb = new Verb(IRI::fromString('http://example.com/visited'), LanguageMap::create(array('en-US' => 'will visit')));
        $definition = new Definition(
            LanguageMap::create(array('en-US' => 'Some Awesome Website')),
            LanguageMap::create(array('en-US' => 'The visited website')),
            IRI::fromString('http://example.com/definition-type')
        );
        $activity = new Activity(IRI::fromString('http://example.com/website'), $definition);
        $subStatement = new SubStatement($actor, $verb, $activity);

        $actor = new Agent(InverseFunctionalIdentifier::withMbox(IRI::fromString('mailto:test@example.com')));
        $verb = new Verb(IRI::fromString('http://example.com/planned'), LanguageMap::create(array('en-US' => 'planned')));

        return new Statement(StatementId::fromString($id), $actor, $verb, $subStatement);
    }
public static function getStatementWithSubStatement ( $ id = self :: DEFAULT_STATEMENT_ID ) { if ( null === $ id ) { $ id = UuidFixtures :: getUniqueUuid ( ) ; } $ actor = new Agent ( InverseFunctionalIdentifier :: withMbox ( IRI :: fromString ( 'mailto:test@example.com' ) ) ) ; $ verb = new Verb ( IRI :: fromString ( 'http://example.com/visited' ) , LanguageMap :: create ( array ( 'en-US' => 'will visit' ) ) ) ; $ definition = new Definition ( LanguageMap :: create ( array ( 'en-US' => 'Some Awesome Website' ) ) , LanguageMap :: create ( array ( 'en-US' => 'The visited website' ) ) , IRI :: fromString ( 'http://example.com/definition-type' ) ) ; $ activity = new Activity ( IRI :: fromString ( 'http://example.com/website' ) , $ definition ) ; $ subStatement = new SubStatement ( $ actor , $ verb , $ activity ) ; $ actor = new Agent ( InverseFunctionalIdentifier :: withMbox ( IRI :: fromString ( 'mailto:test@example.com' ) ) ) ; $ verb = new Verb ( IRI :: fromString ( 'http://example.com/planned' ) , LanguageMap :: create ( array ( 'en-US' => 'planned' ) ) ) ; return new Statement ( StatementId :: fromString ( $ id ) , $ actor , $ verb , $ subStatement ) ; }
Loads a statement including a sub statement.

@param string $id The id of the new Statement

@return Statement
Loads a statement including a sub statement .